diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-10-24 17:53:38 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-10-24 17:53:38 +0200 |
commit | 0218669d627e2e2f20d8294cff5bb7803b539a7a (patch) | |
tree | 5d533861e59995121c9641a5da633ed1bec01a45 /source4/param | |
parent | a665f5f5a177f1074a4b488b35fcd82f74766f75 (diff) | |
download | samba-0218669d627e2e2f20d8294cff5bb7803b539a7a.tar.gz samba-0218669d627e2e2f20d8294cff5bb7803b539a7a.tar.bz2 samba-0218669d627e2e2f20d8294cff5bb7803b539a7a.zip |
Remove include/local.h and move defines to more appropriate places.
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/generic.c | 3 | ||||
-rw-r--r-- | source4/param/loadparm.h | 30 |
2 files changed, 27 insertions, 6 deletions
diff --git a/source4/param/generic.c b/source4/param/generic.c index ed3045605d..292b91690f 100644 --- a/source4/param/generic.c +++ b/source4/param/generic.c @@ -127,9 +127,6 @@ const char **param_get_string_list(struct param_context *ctx, const char *param, if (p == NULL) return NULL; - if (separator == NULL) - separator = LIST_SEP; - return (const char **)str_list_make(ctx, p->value, separator); } diff --git a/source4/param/loadparm.h b/source4/param/loadparm.h index cd3c0b9595..47bce75cfb 100644 --- a/source4/param/loadparm.h +++ b/source4/param/loadparm.h @@ -59,9 +59,6 @@ struct parm_struct { } def; }; - - - #define FLAG_DEFAULT 0x0001 /* this option was a default */ #define FLAG_CMDLINE 0x0002 /* this option was set from the command line */ @@ -73,3 +70,30 @@ struct parm_struct { #define HOMES_NAME "homes" #endif +/* This defines the section name in the configuration file that will contain */ +/* global parameters - that is, parameters relating to the whole server, not */ +/* just services. This name is then reserved, and may not be used as a */ +/* a service name. It will default to "global" if not defined here. */ +#ifndef GLOBAL_NAME +#define GLOBAL_NAME "global" +#define GLOBAL_NAME2 "globals" +#endif + +/* The default workgroup - usually overridden in smb.conf */ +#ifndef DEFAULT_WORKGROUP +#define DEFAULT_WORKGROUP "WORKGROUP" +#endif + +/* + * Default passwd chat script. + */ +#ifndef DEFAULT_PASSWD_CHAT +#define DEFAULT_PASSWD_CHAT "*new*password* %n\\n *new*password* %n\\n *changed*" +#endif + +/* Max number of jobs per print queue. */ +#ifndef PRINT_MAX_JOBID +#define PRINT_MAX_JOBID 10000 +#endif + + |