diff options
author | Keith Packard <keithp@keithp.com> | 2009-08-18 12:19:31 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-08-18 12:45:01 -0700 |
commit | 9a9cce5510b87252f863239ac807b9fb4395b288 (patch) | |
tree | 9ed43390cb1bbf8911e81386080039163e0adb23 | |
parent | 9789ca5e8caa9a013e804f307b9da380e147bd75 (diff) |
Start working on using getopt for the tty name
-rw-r--r-- | ao-tools/ao-load/ao-load.c | 3 |
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) { |