From c9dc1300ba973297b411ef8418bf0712d3fe12b2 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 3 Aug 2005 04:42:56 +0000 Subject: [PATCH] Got rid of the argp var that is not needed now that argv is no longer a literal array. --- clientserver.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/clientserver.c b/clientserver.c index 9304f219..8ec966a5 100644 --- a/clientserver.c +++ b/clientserver.c @@ -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; } -- 2.34.1