mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-14 01:27:35 -05:00
The command-line routines now take a pointer to `cfg' as an
argument, so they don't depend on it being a global any more. [originally from svn r2555]
This commit is contained in:
4
scp.c
4
scp.c
@ -493,7 +493,7 @@ static void do_cmd(char *host, char *user, char *cmd)
|
||||
/*
|
||||
* Enact command-line overrides.
|
||||
*/
|
||||
cmdline_run_saved();
|
||||
cmdline_run_saved(&cfg);
|
||||
|
||||
/*
|
||||
* Trim leading whitespace off the hostname if it's there.
|
||||
@ -2189,7 +2189,7 @@ int main(int argc, char *argv[])
|
||||
int ret;
|
||||
if (argv[i][0] != '-')
|
||||
break;
|
||||
ret = cmdline_process_param(argv[i], i+1<argc?argv[i+1]:NULL, 1);
|
||||
ret = cmdline_process_param(argv[i], i+1<argc?argv[i+1]:NULL, 1, &cfg);
|
||||
if (ret == -2) {
|
||||
cmdline_error("option \"%s\" requires an argument", argv[i]);
|
||||
} else if (ret == 2) {
|
||||
|
Reference in New Issue
Block a user