summaryrefslogtreecommitdiff
path: root/utils/imxtools/sbtools/elftosb.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/imxtools/sbtools/elftosb.c')
-rw-r--r--utils/imxtools/sbtools/elftosb.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/utils/imxtools/sbtools/elftosb.c b/utils/imxtools/sbtools/elftosb.c
index 22a5b58753..fd44693a94 100644
--- a/utils/imxtools/sbtools/elftosb.c
+++ b/utils/imxtools/sbtools/elftosb.c
@@ -18,7 +18,7 @@
18 * KIND, either express or implied. 18 * KIND, either express or implied.
19 * 19 *
20 ****************************************************************************/ 20 ****************************************************************************/
21 21
22#define _ISOC99_SOURCE 22#define _ISOC99_SOURCE
23#define _POSIX_C_SOURCE 200809L /* for strdup */ 23#define _POSIX_C_SOURCE 200809L /* for strdup */
24#include <stdio.h> 24#include <stdio.h>
@@ -144,7 +144,7 @@ static struct sb_file_t *apply_cmd_file(struct cmd_file_t *cmd_file)
144 144
145 db_generate_default_sb_version(&sb->product_ver); 145 db_generate_default_sb_version(&sb->product_ver);
146 db_generate_default_sb_version(&sb->component_ver); 146 db_generate_default_sb_version(&sb->component_ver);
147 147
148 if(g_debug) 148 if(g_debug)
149 printf("Applying command file...\n"); 149 printf("Applying command file...\n");
150 /* count sections */ 150 /* count sections */
@@ -246,7 +246,7 @@ static struct sb_file_t *apply_cmd_file(struct cmd_file_t *cmd_file)
246 } 246 }
247 else 247 else
248 bug("die\n"); 248 bug("die\n");
249 249
250 cinst = cinst->next; 250 cinst = cinst->next;
251 } 251 }
252 252
@@ -308,7 +308,7 @@ static struct sb_file_t *apply_cmd_file(struct cmd_file_t *cmd_file)
308 } 308 }
309 else 309 else
310 bug("die\n"); 310 bug("die\n");
311 311
312 cinst = cinst->next; 312 cinst = cinst->next;
313 } 313 }
314 } 314 }
@@ -347,7 +347,7 @@ int main(int argc, char **argv)
347 struct crypto_key_t crypto_iv; 347 struct crypto_key_t crypto_iv;
348 real_key.method = CRYPTO_NONE; 348 real_key.method = CRYPTO_NONE;
349 crypto_iv.method = CRYPTO_NONE; 349 crypto_iv.method = CRYPTO_NONE;
350 350
351 while(1) 351 while(1)
352 { 352 {
353 static struct option long_options[] = 353 static struct option long_options[] =
@@ -452,10 +452,10 @@ int main(int argc, char **argv)
452 sb_file->first_boot_sec_id = sb_file->sections[0].identifier; 452 sb_file->first_boot_sec_id = sb_file->sections[0].identifier;
453 sb_file->flags = 0; 453 sb_file->flags = 0;
454 sb_file->minor_version = 1; 454 sb_file->minor_version = 1;
455 455
456 sb_write_file(sb_file, output_filename); 456 sb_write_file(sb_file, output_filename);
457 sb_free(sb_file); 457 sb_free(sb_file);
458 clear_keys(); 458 clear_keys();
459 459
460 return 0; 460 return 0;
461} 461}