Skip to content

Commit

Permalink
fix compiler warnings on the extractor utility
Browse files Browse the repository at this point in the history
  • Loading branch information
fabled committed Jun 22, 2016
1 parent 3d88f48 commit 9d473ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bmd-extractfw.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
Expand Down Expand Up @@ -65,7 +66,8 @@ int main(int argc, char **argv)
continue;

fwend = (uint8_t*)h + 5;
fprintf(stderr, "%s: @%08x, %d bytes\n", specs[i].filename, fwbase - data, fwend - fwbase);
fprintf(stderr, "%s: @%08x, %ud bytes\n", specs[i].filename,
(unsigned int)(fwbase - data), (unsigned int)(fwend - fwbase));

fd = creat(specs[i].filename, 0666);
if (fd < 0) {
Expand Down

0 comments on commit 9d473ee

Please sign in to comment.