X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fopt%2Ftest%2Frun-correct-reporting.c;h=bbac3402dde35a70d12ff58dd1961377a791e5b3;hb=18636637ee013ef828cb04b2b7bb4a4922324475;hp=44f68ae2034b01d7146e6ac50a80f72346dbfbb2;hpb=b4cf10d83d46b50468ae52fccaeb99a793505467;p=ccan diff --git a/ccan/opt/test/run-correct-reporting.c b/ccan/opt/test/run-correct-reporting.c index 44f68ae2..bbac3402 100644 --- a/ccan/opt/test/run-correct-reporting.c +++ b/ccan/opt/test/run-correct-reporting.c @@ -11,7 +11,7 @@ int main(int argc, char *argv[]) plan_tests(12); /* --aaa without args. */ - opt_register_arg("-a/--aaa", test_arg, NULL, "aaa", NULL); + opt_register_arg("-a/--aaa", test_arg, NULL, "aaa", ""); ok1(!parse_args(&argc, &argv, "--aaa", NULL)); ok1(strstr(err_output, ": --aaa: option requires an argument")); free(err_output); @@ -22,7 +22,7 @@ int main(int argc, char *argv[]) err_output = NULL; /* Multiple */ - opt_register_arg("--bbb/-b/-c/--ccc", test_arg, NULL, "aaa", NULL); + opt_register_arg("--bbb/-b/-c/--ccc", test_arg, NULL, "aaa", ""); ok1(!parse_args(&argc, &argv, "--bbb", NULL)); ok1(strstr(err_output, ": --bbb: option requires an argument")); free(err_output);