Best reviewed with: `git show --word-diff`.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
The regular format of the CPP macros in param_functions.c is used to
generate up the prototypes (mkproto.pl, mks3param_proto.pl), the service
and globals table (mkparamdefs.pl), the glue table (mmks3param.pl) and
-the initilisation of the glue table (mks3param_ctx_table.pl).
+the initialisation of the glue table (mks3param_ctx_table.pl).
I have tried combining some of these, but it just makes the scripts more
complex.
The CPP macros are defined in and expand in lib/param/loadparm.c and
source3/param/loadparm.c to read the values from the generated
-stuctures. They are CPP #included into these files so that the same
+structures. They are CPP #included into these files so that the same
macro has two definitions, depending on the system it is loading into.
* for code compatibility between existing Samba4 and Samba3 code.
*/
-/* this global context supports the lp_*() function varients */
+/* this global context supports the lp_*() function variants */
static struct loadparm_context *global_loadparm_context;
#define FN_GLOBAL_SUBSTITUTED_STRING(fn_name,var_name) \
void lpcfg_print_parameter(struct parm_struct *p, void *ptr, FILE * f)
{
- /* For the seperation of lists values that we print below */
+ /* For the separation of lists values that we print below */
const char *list_sep = ", ";
int i;
switch (p->type)
setenv("SMB_CONF_PATH", filename, 1);
/* set the context used by the lp_*() function
- varients */
+ variants */
global_loadparm_context = lp_ctx;
lp_ctx->loaded = true;
}
/*
* This should be under the HAVE_KRB5 flag but since they're used
- * in lp_kerberos_method(), they ned to be always available
+ * in lp_kerberos_method(), they need to be always available
* If you add any entries to KERBEROS_VERIFY defines, please modify USE.*KEYTAB macros
* so they remain accurate.
*/