svn commit: samba r25410 - in branches/SAMBA_4_0: . source/param

jelmer at samba.org jelmer at samba.org
Fri Sep 28 18:53:28 GMT 2007


Author: jelmer
Date: 2007-09-28 18:53:26 +0000 (Fri, 28 Sep 2007)
New Revision: 25410

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

Log:
Use C99 struct initialization.
Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/param/loadparm.c


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/param/loadparm.c
===================================================================
--- branches/SAMBA_4_0/source/param/loadparm.c	2007-09-28 18:46:55 UTC (rev 25409)
+++ branches/SAMBA_4_0/source/param/loadparm.c	2007-09-28 18:53:26 UTC (rev 25410)
@@ -227,39 +227,36 @@
 
 /* This is a default service used to prime a services structure */
 static struct loadparm_service sDefault = {
-	NULL,			/* szService */
-	NULL,			/* szPath */
-	NULL,			/* szCopy */
-	NULL,			/* szInclude */
-	NULL,			/* szPrintername */
-	NULL,			/* szHostsallow */
-	NULL,			/* szHostsdeny */
-	NULL,			/* comment */
-	NULL,			/* volume */
-	NULL,			/* fstype */
-	NULL,                   /* ntvfs_handler */
-	1000,			/* iMaxPrintJobs */
-	0,			/* iMaxConnections */
-	0,			/* iCSCPolicy */
-	true,			/* bAvailable */
-	true,			/* bBrowseable */
-	true,			/* bRead_only */
-	false,			/* bPrint_ok */
-	false,			/* bMap_system */
-	false,			/* bMap_hidden */
-	true,			/* bMap_archive */
-	true,			/* bStrictLocking */
-	0744,			/* iCreate_mask */
-	0000,			/* iCreate_force_mode */
-	0755,			/* iDir_mask */
-	0000,			/* iDir_force_mode */	
-	NULL,			/* copymap */
-	false,			/* bMSDfsRoot */
-	false,			/* bStrictSync */
-	false,			/* bCIFileSystem */
-	NULL,			/* Parametric options */
-
-	""			/* dummy */
+	.szService = NULL,
+	.szPath = NULL,
+	.szCopy = NULL,
+	.szInclude = NULL,
+	.szPrintername = NULL,			
+	.szHostsallow = NULL,			
+	.szHostsdeny = NULL,			
+	.comment = NULL,			
+	.volume = NULL,			
+	.fstype = NULL,			
+	.ntvfs_handler = NULL,                   
+	.iMaxPrintJobs = 1000,			
+	.iMaxConnections = 0,			
+	.iCSCPolicy = 0,			
+	.bAvailable = true,			
+	.bBrowseable = true,			
+	.bRead_only = true,			
+	.bPrint_ok = false,			
+	.bMap_system = false,			
+	.bMap_hidden = false,			
+	.bMap_archive = true,			
+	.bStrictLocking = true,			
+	.iCreate_mask = 0744,			
+	.iCreate_force_mode = 0000,
+	.iDir_mask = 0755,			
+	.iDir_force_mode = 0000,			
+	.copymap = NULL,
+	.bMSDfsRoot = false,
+	.bStrictSync = false,
+	.bCIFileSystem = false,
 };
 
 /* local variables */



More information about the samba-cvs mailing list