diff options
author | Garming Sam <garming@catalyst.net.nz> | 2014-02-24 12:31:43 +1300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-05-07 19:49:16 +0200 |
commit | ad09b3e608f498b4f7a05fa3fce0648c99a533ea (patch) | |
tree | 6c0246af1e2e0d4c059fb1b774eee1504ecdac74 /source3/param/loadparm.c | |
parent | db19d744799d44ced56d33553194b603691f6822 (diff) | |
download | samba-ad09b3e608f498b4f7a05fa3fce0648c99a533ea.tar.gz samba-ad09b3e608f498b4f7a05fa3fce0648c99a533ea.tar.xz samba-ad09b3e608f498b4f7a05fa3fce0648c99a533ea.zip |
param: correctly use param_table.c as a regular C file
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r-- | source3/param/loadparm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index d5f7bacf1b..100ef8d2e9 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -258,15 +258,13 @@ static bool bInGlobalSection = true; static bool bGlobalOnly = false; static struct file_lists *file_lists = NULL; -#define NUMPARAMETERS (sizeof(parm_table) / sizeof(struct parm_struct)) +#define NUMPARAMETERS (num_parameters()) static void set_allowed_client_auth(void); static bool lp_set_cmdline_helper(const char *pszParmName, const char *pszParmValue, bool store_values); static void free_param_opts(struct parmlist_entry **popts); -#include "lib/param/param_table.c" - /* this is used to prevent lots of mallocs of size 1 */ static const char null_string[] = ""; |