[prev in list] [next in list] [prev in thread] [next in thread] 

List:       samba-cvs
Subject:    svn commit: samba r22607 - in branches/SAMBA_4_0/source/utils: .
From:       metze () samba ! org
Date:       2007-04-30 13:13:50
Message-ID: 20070430131350.A405A162ACF () lists ! samba ! org
[Download RAW message or body]

Author: metze
Date: 2007-04-30 13:13:49 +0000 (Mon, 30 Apr 2007)
New Revision: 22607

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22607

Log:
work with the solaris version of popt

metze
Modified:
   branches/SAMBA_4_0/source/utils/testparm.c


Changeset:
Modified: branches/SAMBA_4_0/source/utils/testparm.c
===================================================================
--- branches/SAMBA_4_0/source/utils/testparm.c	2007-04-30 13:03:03 UTC (rev 22606)
+++ branches/SAMBA_4_0/source/utils/testparm.c	2007-04-30 13:13:49 UTC (rev 22607)
@@ -75,11 +75,11 @@
  int main(int argc, const char *argv[])
 {
 	int s;
-	static BOOL silent_mode = False;
+	static int silent_mode = 0;
 	int ret = 0;
 	poptContext pc;
 /*
-	static BOOL show_all_parameters = False;
+	static int show_all_parameters = 0;
 	static char *new_local_machine = NULL;
 */
 	static const char *section_name = NULL;
@@ -90,7 +90,7 @@
 
 	struct poptOption long_options[] = {
 		POPT_AUTOHELP
-		{"suppress-prompt", '\0', POPT_ARG_VAL, &silent_mode, 1, "Suppress prompt for \
enter"}, +		{"suppress-prompt", 0, POPT_ARG_NONE, &silent_mode, 1, "Suppress prompt \
for enter"},  {"verbose", 'v', POPT_ARG_NONE, &show_defaults, 1, "Show default \
options too"},  /*
   We need support for smb.conf macros before this will work again 
@@ -98,7 +98,7 @@
 */
 /*
   These are harder to do with the new code structure
-		{"show-all-parameters", '\0', POPT_ARG_VAL, &show_all_parameters, True, "Show the \
parameters, type, possible values" }, +		{"show-all-parameters", '\0', POPT_ARG_NONE, \
                &show_all_parameters, 1, "Show the parameters, type, possible values" \
                },
 */
 		{"section-name", '\0', POPT_ARG_STRING, &section_name, 0, "Limit testparm to a \
named section" },  {"parameter-name", '\0', POPT_ARG_STRING, &parameter_name, 0, \
"Limit testparm to a named parameter" },


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic