diff options
author | Jeremy Allison <jra@samba.org> | 2007-10-26 16:22:18 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-10-26 16:22:18 -0700 |
commit | 73eefd6b722992da6abab053154a3ffd2b9f54d0 (patch) | |
tree | 342c16c6411b2282b5967c623f2119552083bc36 | |
parent | fc91aa6988e93ee5a001781d56699e3c1b9684a7 (diff) | |
download | samba-73eefd6b722992da6abab053154a3ffd2b9f54d0.tar.gz samba-73eefd6b722992da6abab053154a3ffd2b9f54d0.tar.bz2 samba-73eefd6b722992da6abab053154a3ffd2b9f54d0.zip |
Fix popt bool problems (need POPT_ARG_NONE, not POPT_ARG_VALUE).
Reported by kukks - thanks !
Jeremy.
(This used to be commit 9993f8d1af23735f3a4b6de82f5825a6a6ba22d6)
-rw-r--r-- | source3/utils/nmblookup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c index e68c786ce9..7293e363c4 100644 --- a/source3/utils/nmblookup.c +++ b/source3/utils/nmblookup.c @@ -244,11 +244,11 @@ int main(int argc,char *argv[]) { "flags", 'f', POPT_ARG_NONE, NULL, 'f', "List the NMB flags returned" }, { "unicast", 'U', POPT_ARG_STRING, NULL, 'U', "Specify address to use for unicast" }, { "master-browser", 'M', POPT_ARG_NONE, NULL, 'M', "Search for a master browser" }, - { "recursion", 'R', POPT_ARG_VAL, NULL, 'R', "Set recursion desired in package" }, - { "status", 'S', POPT_ARG_VAL, NULL, 'S', "Lookup node status as well" }, + { "recursion", 'R', POPT_ARG_NONE, NULL, 'R', "Set recursion desired in package" }, + { "status", 'S', POPT_ARG_NONE, NULL, 'S', "Lookup node status as well" }, { "translate", 'T', POPT_ARG_NONE, NULL, 'T', "Translate IP addresses into names" }, - { "root-port", 'r', POPT_ARG_VAL, NULL, 'r', "Use root port 137 (Win95 only replies to this)" }, - { "lookup-by-ip", 'A', POPT_ARG_VAL, NULL, 'A', "Do a node status on <name> as an IP Address" }, + { "root-port", 'r', POPT_ARG_NONE, NULL, 'r', "Use root port 137 (Win95 only replies to this)" }, + { "lookup-by-ip", 'A', POPT_ARG_NONE, NULL, 'A', "Do a node status on <name> as an IP Address" }, POPT_COMMON_SAMBA POPT_COMMON_CONNECTION { 0, 0, 0, 0 } |