"unittest", "-1",
NULL
};
- int argc = sizeof argv/sizeof argv[0] - 1;
+ int argc = 2;
rc = _test_config(cfg, st, argc, argv);
_check_success(rc, cfg, expected, __LINE__);
"unittest", "-2", "-a303132333435363738393a3b3c3d3e3f",
NULL
};
- int argc = sizeof argv/sizeof argv[0] - 1;
+ int argc = 3;
rc = _test_config(cfg, st, argc, argv);
_check_success(rc, cfg, expected, __LINE__);
"unittest", "-oshort-ticket",
NULL
};
- int argc = sizeof argv/sizeof argv[0] - 1;
+ int argc = 2;
rc = _test_config(cfg, st, argc, argv);
assert(rc == 0);
"unittest", "-oticket-first",
NULL
};
- int argc = sizeof argv/sizeof argv[0] - 1;
+ int argc = 2;
rc = _test_config(cfg, st, argc, argv);
assert(rc == 0);
"unittest", "-sout", "-iin", "-c313233343536", "-y", "-v",
NULL
};
- int argc = sizeof argv/sizeof argv[0] - 1;
+ int argc = 6;
ykp_errno = 0;
optind = 0; /* getopt reinit */
"unittest", "-1", "-a303132333435363738393a3b3c3d3e3f40414243", "-ooath-hotp", "-o-append-cr",
NULL
};
- int argc = sizeof argv/sizeof argv[0] - 1;
+ int argc = 5;
rc = _test_config(cfg, st, argc, argv);
_check_success(rc, cfg, expected, __LINE__);
"-ochal-resp", "-ochal-hmac", "-ohmac-lt64", "-oserial-api-visible",
NULL
};
- int argc = sizeof argv/sizeof argv[0] - 1;
+ int argc = 7;
rc = _test_config(cfg, st, argc, argv);
_check_success(rc, cfg, expected, __LINE__);