* Done in this way to be testable (see tests/test_args_to_config.c).
*/
int args_to_config(int argc, char **argv, YKP_CONFIG *cfg,
- const char *infname, const char *outfname,
+ const char **infname, const char **outfname,
bool *autocommit, char *salt,
YK_STATUS *st, bool *verbose,
unsigned char *access_code, bool *use_access_code,
return 0;
break;
case 'i':
- infname = optarg;
+ *infname = optarg;
break;
case 's':
- outfname = optarg;
+ *outfname = optarg;
break;
case 'a':
*aesviahash = true;
/* Parse all arguments in a testable way */
if (! args_to_config(argc, argv, cfg,
- infname, outfname,
+ &infname, &outfname,
&autocommit, salt,
st, &verbose,
access_code, &use_access_code,