Commit c9dc1300 authored by Wayne Davison's avatar Wayne Davison

Got rid of the argp var that is not needed now that argv is no

longer a literal array.
parent 53cf0b8b
......@@ -222,7 +222,6 @@ static int rsync_module(int f_in, int f_out, int i)
int argc = 0;
int maxargs;
char **argv;
char **argp;
char line[BIGPATHBUFLEN];
uid_t uid = (uid_t)-2; /* canonically "nobody" */
gid_t gid = (gid_t)-2;
......@@ -515,8 +514,7 @@ static int rsync_module(int f_in, int f_out, int i)
}
verbose = 0; /* future verbosity is controlled by client options */
argp = argv;
ret = parse_arguments(&argc, (const char ***) &argp, 0);
ret = parse_arguments(&argc, (const char ***) &argv, 0);
if (filesfrom_fd == 0)
filesfrom_fd = f_in;
......@@ -578,7 +576,7 @@ static int rsync_module(int f_in, int f_out, int i)
if (lp_timeout(i) && lp_timeout(i) > io_timeout)
set_io_timeout(lp_timeout(i));
start_server(f_in, f_out, argc, argp);
start_server(f_in, f_out, argc, argv);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment