summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-03-30 00:00:10 +0000
committerAndrew Tridgell <tridge@samba.org>2003-03-30 00:00:10 +0000
commit6fca8cc8a7073f2ee17c3417b42cadc46b3c5195 (patch)
tree61abca3192fcbdc5db5a7c84871b738f684e145d /source3
parent097a7b52e7394f40dd9fd0ec342336f2c819ec12 (diff)
downloadsamba-6fca8cc8a7073f2ee17c3417b42cadc46b3c5195.tar.gz
samba-6fca8cc8a7073f2ee17c3417b42cadc46b3c5195.tar.bz2
samba-6fca8cc8a7073f2ee17c3417b42cadc46b3c5195.zip
fixed the -B option as well
(This used to be commit 0c12a206bb6610d79deb89868cac9293604b7c08)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/nmblookup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c
index d4d43796a0..d2c5cbc00e 100644
--- a/source3/utils/nmblookup.c
+++ b/source3/utils/nmblookup.c
@@ -193,7 +193,7 @@ int main(int argc,char *argv[])
struct poptOption long_options[] = {
POPT_AUTOHELP
- { "broadcast", 'b', POPT_ARG_STRING, NULL, 'B', "Specify address to use for broadcasts", "BROADCAST-ADDRESS" },
+ { "broadcast", 'B', POPT_ARG_STRING, NULL, 'B', "Specify address to use for broadcasts", "BROADCAST-ADDRESS" },
{ "flags", 'f', POPT_ARG_VAL, &give_flags, True, "List the NMB flags returned" },
{ "unicast", 'U', POPT_ARG_STRING, NULL, 'U', "Specify address to use for unicast" },
{ "master-browser", 'M', POPT_ARG_VAL, &find_master, True, "Search for a master browser" },
@@ -216,9 +216,8 @@ int main(int argc,char *argv[])
poptSetOtherOptionHelp(pc, "<NODE> ...");
- while ((opt = poptGetNextOpt(pc)) != -1)
- switch (opt)
- {
+ while ((opt = poptGetNextOpt(pc)) != -1) {
+ switch (opt) {
case 'B':
bcast_addr = *interpret_addr2(poptGetOptArg(pc));
got_bcast = True;
@@ -233,6 +232,7 @@ int main(int argc,char *argv[])
translate_addresses = !translate_addresses;
break;
}
+ }
poptGetArg(pc); /* Remove argv[0] */