projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e695d2e
)
opt: 64-bit compile fixes
author
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 20 Oct 2010 02:10:00 +0000
(12:40 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 20 Oct 2010 02:10:00 +0000
(12:40 +1030)
%.* => unsigned, not size_t.
ccan/opt/usage.c
patch
|
blob
|
history
diff --git
a/ccan/opt/usage.c
b/ccan/opt/usage.c
index eedaae7eb821d0dab8114de49222b14496887aa0..60e1586861adc0981a5bf0eaf00bc63bcff450a4 100644
(file)
--- a/
ccan/opt/usage.c
+++ b/
ccan/opt/usage.c
@@
-93,7
+93,7
@@
char *opt_usage(const char *argv0, const char *extra)
len += sprintf(p + len, " <arg>");
len += sprintf(p + len, "%.*s",
len < strlen(OPT_SPACE_PAD)
- ? strlen(OPT_SPACE_PAD) - len : 1,
+ ?
(unsigned)
strlen(OPT_SPACE_PAD) - len : 1,
OPT_SPACE_PAD);
len += sprintf(p + len, "%s", opt_table[i].desc);