char *endptr, *buffer, *p;
int count; // size of file in bytes
unsigned short sum = 0, sum1 = 0;
- char sumbuf[9];
+ char sumbuf[8 + 8 + 1];
if(argc < 3) {
printf("ERROR: Argument missing!\n\nUsage %s filename starting offset in hex [PID code]\n\n", argv[0]);
#define CPX_BOARD_AR23XX(_did, _flash, _mod, _name, _desc) \
CPX_BOARD(_did, _flash, _mod, _name, _desc, 0x10000, 0x10000)
-#define ALIGN(x,y) ((x)+((y)-1)) & ~((y)-1)
+#define ALIGN(x,y) (((x)+((y)-1)) & ~((y)-1))
char *progname;
char *ofname = NULL;
else
padding = align - ((section->raw_size+ section->offset) % align);
- section->total_size=section->raw_size + padding;
+ section->total_size=section->raw_size + padding;
}
else{
#define EXTRA_BLOCK 0x10000