Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: utility/tlcl_generator.c

Issue 3271006: Make TPM datagrams const, since they cannot be modified in the RO firmware. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « firmware/version.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utility/tlcl_generator.c
diff --git a/utility/tlcl_generator.c b/utility/tlcl_generator.c
index 96a23dd1c8d8ab259ee962e4525d84e188ac9aa3..efb0f341df758d7544febe224e4a471d3d413946 100644
--- a/utility/tlcl_generator.c
+++ b/utility/tlcl_generator.c
@@ -431,7 +431,7 @@ void OutputCommands(Command* cmd) {
if (cmd == NULL) {
return;
} else {
- printf("struct s_%s{\n uint8_t buffer[%d];\n",
+ printf("const struct s_%s{\n uint8_t buffer[%d];\n",
cmd->name, cmd->size == 0 ? cmd->max_size : cmd->size);
OutputFields(cmd->fields);
printf("} %s = {{", cmd->name);
« no previous file with comments | « firmware/version.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698