Skip to content

Commit

Permalink
Fix the pagesize argument parsing
Browse files Browse the repository at this point in the history
Change-Id: I8a3d1a2a70c5ad972d3e150b320ee2184c9d5b4a
  • Loading branch information
Maarten Hooft committed Aug 24, 2010
1 parent fc2f7cb commit 65e461c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkbootimg/mkbootimg.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ int main(int argc, char **argv)
hdr.second_addr = 0x10F00000;
hdr.tags_addr = 0x10000100;

hdr.page_size = pagesize;

while(argc > 0){
char *arg = argv[0];
char *val = argv[1];
Expand Down Expand Up @@ -159,6 +157,8 @@ int main(int argc, char **argv)
return usage();
}
}
hdr.page_size = pagesize;


if(bootimg == 0) {
fprintf(stderr,"error: no output filename specified\n");
Expand Down

0 comments on commit 65e461c

Please sign in to comment.