Commit 5a02610c authored by Rusty Russell's avatar Rusty Russell

opt: 64-bit compile fixes

%.* => unsigned, not size_t.
parent e695d2e4
...@@ -93,7 +93,7 @@ char *opt_usage(const char *argv0, const char *extra) ...@@ -93,7 +93,7 @@ char *opt_usage(const char *argv0, const char *extra)
len += sprintf(p + len, " <arg>"); len += sprintf(p + len, " <arg>");
len += sprintf(p + len, "%.*s", len += sprintf(p + len, "%.*s",
len < strlen(OPT_SPACE_PAD) len < strlen(OPT_SPACE_PAD)
? strlen(OPT_SPACE_PAD) - len : 1, ? (unsigned)strlen(OPT_SPACE_PAD) - len : 1,
OPT_SPACE_PAD); OPT_SPACE_PAD);
len += sprintf(p + len, "%s", opt_table[i].desc); len += sprintf(p + len, "%s", opt_table[i].desc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment