Fix rename of global option
authorMartin Pool <mbp@samba.org>
Mon, 26 Nov 2001 08:21:30 +0000 (08:21 +0000)
committerMartin Pool <mbp@samba.org>
Mon, 26 Nov 2001 08:21:30 +0000 (08:21 +0000)
options.c

index 9395117..cc0533d 100644 (file)
--- a/options.c
+++ b/options.c
@@ -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,    &global_opts.af,   AF_INET },
-  {0,                '6', POPT_ARG_VAL,    &global_opts.af,   AF_INET6 },
+  {0,                '4', POPT_ARG_VAL,    &global_opts.af_hint,   AF_INET },
+  {0,                '6', POPT_ARG_VAL,    &global_opts.af_hint,   AF_INET6 },
 #endif
   {0,0,0,0}
 };