diff options
author | Brandon McAnsh <brandon.mcansh@gmail.com> | 2015-10-08 11:21:31 -0400 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-09 11:30:41 -0700 |
commit | f807696f9bd2a26f6b5fea45b3f3a663a53fd5fc (patch) | |
tree | e31c45816e41a1cba60526764f60b4d08c2459d0 /mkbootimg/mkbootimg.c | |
parent | cbe1aab12c5976e69ad4efe7cd3823351c2818e6 (diff) | |
download | system_core-f807696f9bd2a26f6b5fea45b3f3a663a53fd5fc.zip system_core-f807696f9bd2a26f6b5fea45b3f3a663a53fd5fc.tar.gz system_core-f807696f9bd2a26f6b5fea45b3f3a663a53fd5fc.tar.bz2 |
mkbootimg: Fix for loop initial declaration error
error: 'for' loop initial declarations are only allowed in C99 or C11 mode
Change-Id: I6e46b61ca21793080d2e3f649c0ef1bd7eacdc76
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Diffstat (limited to 'mkbootimg/mkbootimg.c')
-rw-r--r-- | mkbootimg/mkbootimg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mkbootimg/mkbootimg.c b/mkbootimg/mkbootimg.c index f3028cb..fa8697d 100644 --- a/mkbootimg/mkbootimg.c +++ b/mkbootimg/mkbootimg.c @@ -81,7 +81,8 @@ static unsigned char padding[131072] = { 0, }; static void print_id(const uint8_t *id, size_t id_len) { printf("0x"); - for (unsigned i = 0; i < id_len; i++) { + unsigned i = 0; + for (i = 0; i < id_len; i++) { printf("%02x", id[i]); } printf("\n"); |