summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-03-23 00:47:35 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-03-23 00:47:35 +0000
commit46a6e7f62ba2c72d6288290857193eed280c6d2a (patch)
treef69add495eeedbe41a38c69259ad4785214a10f4
parent8c7753e87f297d8b828e50d7fd9ed5942f0adb0e (diff)
downloadsamba-46a6e7f62ba2c72d6288290857193eed280c6d2a.tar.gz
samba-46a6e7f62ba2c72d6288290857193eed280c6d2a.tar.bz2
samba-46a6e7f62ba2c72d6288290857193eed280c6d2a.zip
We don't need optarg when we have popt
(This used to be commit b46581ef153296a0a04f773115cb2ddad4d44686)
-rw-r--r--source3/utils/nmblookup.c4
-rw-r--r--source3/utils/testparm.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c
index 3ff7f6c609..97cea3a7bb 100644
--- a/source3/utils/nmblookup.c
+++ b/source3/utils/nmblookup.c
@@ -222,12 +222,12 @@ int main(int argc,char *argv[])
switch (opt)
{
case 'B':
- bcast_addr = *interpret_addr2(optarg);
+ bcast_addr = *interpret_addr2(poptGetOptArg(pc));
got_bcast = True;
use_bcast = True;
break;
case 'U':
- bcast_addr = *interpret_addr2(optarg);
+ bcast_addr = *interpret_addr2(poptGetOptArg(pc));
got_bcast = True;
use_bcast = False;
break;
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index 60243b671b..22964214be 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -188,8 +188,6 @@ via the %%o substitution. With encrypted passwords this is not possible.\n", lp_
int main(int argc, const char *argv[])
{
- extern char *optarg;
- extern int optind;
const char *config_file = dyn_CONFIGFILE;
int s;
static BOOL silent_mode = False;