From 73eefd6b722992da6abab053154a3ffd2b9f54d0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 26 Oct 2007 16:22:18 -0700 Subject: Fix popt bool problems (need POPT_ARG_NONE, not POPT_ARG_VALUE). Reported by kukks - thanks ! Jeremy. (This used to be commit 9993f8d1af23735f3a4b6de82f5825a6a6ba22d6) --- source3/utils/nmblookup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3') 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 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 as an IP Address" }, POPT_COMMON_SAMBA POPT_COMMON_CONNECTION { 0, 0, 0, 0 } -- cgit