1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

lib:param: Fix code spelling

Best reviewed with: `git show --word-diff`.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
Andreas Schneider 2023-04-06 16:04:08 +02:00 committed by Andreas Schneider
parent 4b12dc1fb5
commit 25e1987e15
3 changed files with 6 additions and 6 deletions

View File

@ -63,14 +63,14 @@ There is a lot of generated code, here, what generates what?
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.

View File

@ -173,7 +173,7 @@ static const char *lpcfg_string(const char *s)
* 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) \
@ -2111,7 +2111,7 @@ bool lpcfg_set_option(struct loadparm_context *lp_ctx, const char *option)
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)
@ -3361,7 +3361,7 @@ static bool lpcfg_load_internal(struct loadparm_context *lp_ctx,
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;
}

View File

@ -169,7 +169,7 @@ struct file_lists {
/*
* 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.
*/