X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/a037edaccd8bc706f8d170c5d2c5a637b3ca5ad5..d5d4b282203f9cb06e77e67021ffdd62abb24d89:/options.c diff --git a/options.c b/options.c index 01f4d827..93951176 100644 --- a/options.c +++ b/options.c @@ -74,8 +74,8 @@ int modify_window=0; #endif int blocking_io=0; -/** Network address family. **/ -int af = AF_INET; +/** Global options set from command line. **/ +struct global_opts global_opts; int read_batch=0; /* dw */ int write_batch=0; /* dw */ @@ -314,8 +314,8 @@ static struct poptOption long_options[] = { {"read-batch", 'f', POPT_ARG_STRING, &batch_ext, 'f'}, {"write-batch", 'F', POPT_ARG_NONE, &write_batch, 0}, #ifdef INET6 - {0, '4', POPT_ARG_VAL, &af, AF_INET }, - {0, '6', POPT_ARG_VAL, &af, AF_INET6 }, + {0, '4', POPT_ARG_VAL, &global_opts.af, AF_INET }, + {0, '6', POPT_ARG_VAL, &global_opts.af, AF_INET6 }, #endif {0,0,0,0} };