X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/fdb5a4eb0b6297c09506f4b9524b409d4322ba1b..1f5043d5ac8cd5cc89d1511b0545a2a17775f3a6:/tools/firmware-utils/src/mktitanimg.c diff --git a/tools/firmware-utils/src/mktitanimg.c b/tools/firmware-utils/src/mktitanimg.c index fc4422ad2..cca4a0eba 100644 --- a/tools/firmware-utils/src/mktitanimg.c +++ b/tools/firmware-utils/src/mktitanimg.c @@ -1,6 +1,7 @@ #include #include #include +#include #include "mktitanimg.h" @@ -55,7 +56,7 @@ void mknspimg_print_hdr(struct nsp_img_hdr *hdr) printf("Offset Sect info: 0x%x\n", hdr->head.sect_info_offset); printf("Offset Sections: 0x%x\n", hdr->sect_info.sections_offset); - chksum=(struct nsp_img_hdr_chksum *)((unsigned int)hdr+hdr->head.chksum_offset); + chksum=(struct nsp_img_hdr_chksum *)(hdr+hdr->head.chksum_offset); printf("Header Checksum: 0x%x\n", chksum->hdr_chksum); printf("+++ Section Information +++\n");