From 95157091e342afabf75dbe08886cfc9f0a51a007 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 28 Sep 2007 18:53:26 +0000 Subject: r25410: Use C99 struct initialization. (This used to be commit ad1513bc1bada69a071ae4f477b9952e45622837) --- source4/param/loadparm.c | 63 +++++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 33 deletions(-) (limited to 'source4/param') 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 */ -- cgit