From 6fca8cc8a7073f2ee17c3417b42cadc46b3c5195 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 30 Mar 2003 00:00:10 +0000 Subject: fixed the -B option as well (This used to be commit 0c12a206bb6610d79deb89868cac9293604b7c08) --- source3/utils/nmblookup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/utils') 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, " ..."); - 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] */ -- cgit