Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f807696f authored by Brandon McAnsh's avatar Brandon McAnsh Committed by Adnan Begovic
Browse files

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: default avatarBrandon McAnsh <brandon.mcansh@gmail.com>
parent cbe1aab1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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");