svn commit: samba r17719 - in branches/SAMBA_4_0/source/lib/ldb/tools: .

tridge at samba.org tridge at samba.org
Tue Aug 22 20:39:02 GMT 2006


Author: tridge
Date: 2006-08-22 20:39:01 +0000 (Tue, 22 Aug 2006)
New Revision: 17719

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

Log:

ldb_cmdline needs to be static for cc on solaris

Modified:
   branches/SAMBA_4_0/source/lib/ldb/tools/cmdline.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/tools/cmdline.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/tools/cmdline.c	2006-08-22 20:33:39 UTC (rev 17718)
+++ branches/SAMBA_4_0/source/lib/ldb/tools/cmdline.c	2006-08-22 20:39:01 UTC (rev 17719)
@@ -39,7 +39,8 @@
 struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, int argc, const char **argv,
 					void (*usage)(void))
 {
-	struct ldb_cmdline options, *ret=NULL;
+	static struct ldb_cmdline options; /* needs to be static for older compilers */
+	struct ldb_cmdline *ret=NULL;
 	poptContext pc;
 #ifdef _SAMBA_BUILD_
 	int r;



More information about the samba-cvs mailing list