projects
/
ccan
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
htable: fix tools/speed.
[ccan]
/
ccan
/
opt
/
parse.c
diff --git
a/ccan/opt/parse.c
b/ccan/opt/parse.c
index 228808dd4a6707b73e37173575ca25e36e62a1ac..b92bcb14871eed40e4873e8473ac1c359e46d5e7 100644
(file)
--- a/
ccan/opt/parse.c
+++ b/
ccan/opt/parse.c
@@
-1,3
+1,4
@@
+/* Licensed under GPLv3+ - see LICENSE file for details */
/* Actual code to parse commandline. */
#include <ccan/opt/opt.h>
#include <string.h>
/* Actual code to parse commandline. */
#include <ccan/opt/opt.h>
#include <string.h>
@@
-94,7
+95,7
@@
int parse_one(int *argc, char *argv[], unsigned *offset,
if (optarg)
return parse_err(errlog, argv[0], o, len,
"doesn't allow an argument");
if (optarg)
return parse_err(errlog, argv[0], o, len,
"doesn't allow an argument");
- problem = opt_table[i].cb(opt_table[i].arg);
+ problem = opt_table[i].cb(opt_table[i].
u.
arg);
} else {
if (!optarg) {
/* Swallow any short options as optarg, eg -afile */
} else {
if (!optarg) {
/* Swallow any short options as optarg, eg -afile */
@@
-107,7
+108,7
@@
int parse_one(int *argc, char *argv[], unsigned *offset,
if (!optarg)
return parse_err(errlog, argv[0], o, len,
"requires an argument");
if (!optarg)
return parse_err(errlog, argv[0], o, len,
"requires an argument");
- problem = opt_table[i].cb_arg(optarg, opt_table[i].arg);
+ problem = opt_table[i].cb_arg(optarg, opt_table[i].
u.
arg);
}
if (problem) {
}
if (problem) {