X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=ao-tools%2Fao-load%2Fao-load.c;h=a2de42bc02b3d0672907795c3dae0183dda5f511;hp=c1f551499ceac969b76072f417bb3f66f49e3e31;hb=96be286b3a9daa9bdb7872118be0118872d483f8;hpb=95a8180f3d7929dbad65c80421f99c925f245af0 diff --git a/ao-tools/ao-load/ao-load.c b/ao-tools/ao-load/ao-load.c index c1f55149..a2de42bc 100644 --- a/ao-tools/ao-load/ao-load.c +++ b/ao-tools/ao-load/ao-load.c @@ -26,7 +26,7 @@ #define AO_USB_DESC_STRING 3 -struct sym { +static struct sym { unsigned addr; char *name; int required; @@ -93,6 +93,7 @@ rewrite(struct ao_hex_image *image, unsigned addr, char *data, int len) printf (" %02x", data[i]); printf("\n"); memcpy(image->data + addr - image->address, data, len); + return 1; } static const struct option options[] = { @@ -112,8 +113,6 @@ int main (int argc, char **argv) { struct ccdbg *dbg; - uint8_t status; - uint16_t pc; struct ao_hex_file *hex; struct ao_hex_image *image; char *filename;