projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9789ca5
)
Start working on using getopt for the tty name
author
Keith Packard
<keithp@keithp.com>
Tue, 18 Aug 2009 19:19:31 +0000
(12:19 -0700)
committer
Keith Packard
<keithp@keithp.com>
Tue, 18 Aug 2009 19:45:01 +0000
(12:45 -0700)
ao-tools/ao-load/ao-load.c
patch
|
blob
|
history
diff --git
a/ao-tools/ao-load/ao-load.c
b/ao-tools/ao-load/ao-load.c
index b84a88a68f25c9b07530d6bb5e7d5b99385174ef..6966dd3a98bf2909f6bd294e0b26ab6163316016 100644
(file)
--- 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)
{