summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-09-28 18:53:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:29 -0500
commit95157091e342afabf75dbe08886cfc9f0a51a007 (patch)
treeb7ed7c8c05c823a6790429679a30ea39aa213c59 /source4/param
parent6371962e894f5ac9e2816e90957f6e281b9f1ee2 (diff)
downloadsamba-95157091e342afabf75dbe08886cfc9f0a51a007.tar.gz
samba-95157091e342afabf75dbe08886cfc9f0a51a007.tar.bz2
samba-95157091e342afabf75dbe08886cfc9f0a51a007.zip
r25410: Use C99 struct initialization.
(This used to be commit ad1513bc1bada69a071ae4f477b9952e45622837)
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/loadparm.c63
1 files changed, 30 insertions, 33 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index cd990ab088..edd3cec82a 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -227,39 +227,36 @@ struct loadparm_service
/* 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 */