diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2021-04-09 07:38:46 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2021-04-09 10:46:15 +0200 |
commit | 7c01e2bac1c2df1e10658b81e903fbd687c1a56b (patch) | |
tree | a39b400e7e2a6f26ef27ecd1368618e1aee4a979 /tools/firmware-utils/src/dns313-header.c | |
parent | e65b633a5b86928a00c5fe3b691144b351fe32cd (diff) | |
download | upstream-7c01e2bac1c2df1e10658b81e903fbd687c1a56b.tar.gz upstream-7c01e2bac1c2df1e10658b81e903fbd687c1a56b.tar.bz2 upstream-7c01e2bac1c2df1e10658b81e903fbd687c1a56b.zip |
firmware-utils: fix unused variable warnings
This fixes warnings from the:
1. -Wunused-variable
2. -Wunused-but-set-variable
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'tools/firmware-utils/src/dns313-header.c')
-rw-r--r-- | tools/firmware-utils/src/dns313-header.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/firmware-utils/src/dns313-header.c b/tools/firmware-utils/src/dns313-header.c index ab34dd6d02..c5c70e1bbc 100644 --- a/tools/firmware-utils/src/dns313-header.c +++ b/tools/firmware-utils/src/dns313-header.c @@ -126,16 +126,13 @@ int main(int argc, char **argv) int fdout; struct stat sb; uint32_t filesize; - uint32_t padding; int ret = 0; const char *pathin; const char *pathout; unsigned char *buffer; - unsigned char *infop; uint32_t sum; size_t bufsize; size_t bytes; - int i; if (argc < 3) { printf("Too few arguments.\n"); @@ -150,7 +147,6 @@ int main(int argc, char **argv) return ret; filesize = sb.st_size; - padding = filesize % 4; printf("INFILE: %s, size: %08x bytes\n", pathin, filesize); /* File + extended header size */ bufsize = filesize + HEADER_SIZE; @@ -180,9 +176,6 @@ int main(int argc, char **argv) } close(fdin); - /* PREP HEADER AND FOOTER */ - infop = buffer; - be_wr(buffer + OFFSET_MAGIC, IH_MAGIC); /* FIXME: use actual time */ |