From: Rusty Russell Date: Thu, 7 Oct 2010 04:12:20 +0000 (+1030) Subject: opt: fix example to compile. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=3e8aea05784959a63cdb609d248f8266b03b56a6 opt: fix example to compile. --- diff --git a/ccan/opt/_info b/ccan/opt/_info index da87838c..c45b7f28 100644 --- a/ccan/opt/_info +++ b/ccan/opt/_info @@ -17,15 +17,15 @@ * static char *somestring; * * static struct opt_table opts[] = { - * { OPT_WITHOUT_ARG("--verbose/-v", opt_inc_intval, &verbose, - * "Verbose mode (can be specified more than once)") }, - * { OPT_WITHOUT_ARG("--someflag", opt_set_bool, &someflag, - * "Set someflag") }, - * { OPT_WITH_ARG("--somefile=", opt_set_charp, opt_show_charp, - * &somestring, "Set somefile to ") }, - * { OPT_WITHOUT_ARG("--usage/--help/-h", opt_usage_and_exit, - * "args...\nA silly test program.", - * "Print this message.") }, + * OPT_WITHOUT_ARG("--verbose/-v", opt_inc_intval, &verbose, + * "Verbose mode (can be specified more than once)"), + * OPT_WITHOUT_ARG("--someflag", opt_set_bool, &someflag, + * "Set someflag"), + * OPT_WITH_ARG("--somefile=", opt_set_charp, opt_show_charp, + * &somestring, "Set somefile to "), + * OPT_WITHOUT_ARG("--usage/--help/-h", opt_usage_and_exit, + * "args...\nA silly test program.", + * "Print this message."), * OPT_ENDTABLE * }; *