summaryrefslogtreecommitdiff
path: root/ao-tools/ao-load/ao-load.c
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2009-08-18 14:40:54 -0600
committerBdale Garbee <bdale@gag.com>2009-08-18 14:40:54 -0600
commit7aa251970cbbb6b9d9678ed0721e28da3df9036b (patch)
tree7e44c666040b1e8728510f2f5a99d6228ca3edd3 /ao-tools/ao-load/ao-load.c
parent107055e969e89771d1e2f8ac8b1a4c5b4b9e9a48 (diff)
parent1c2a0b6653623b689d68d7349a6b2dce3e20a4a6 (diff)
Merge branch 'master' into debian
Diffstat (limited to 'ao-tools/ao-load/ao-load.c')
-rw-r--r--ao-tools/ao-load/ao-load.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ao-tools/ao-load/ao-load.c b/ao-tools/ao-load/ao-load.c
index b84a88a6..6966dd3a 100644
--- a/ao-tools/ao-load/ao-load.c
+++ b/ao-tools/ao-load/ao-load.c
@@ -19,6 +19,8 @@
#include <stdlib.h>
#include <limits.h>
#include <stdint.h>
+#include <unistd.h>
+#include <getopt.h>
#include "ccdbg.h"
#define AO_USB_DESC_STRING 3
@@ -94,6 +96,7 @@ rewrite(struct hex_image *image, unsigned addr, char *data, int len)
memcpy(image->data + addr - image->address, data, len);
}
+static const struct option
int
main (int argc, char **argv)
{