]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:param: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Thu, 6 Apr 2023 14:04:08 +0000 (16:04 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 11 Apr 2023 09:06:36 +0000 (09:06 +0000)
Best reviewed with: `git show --word-diff`.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
lib/param/README
lib/param/loadparm.c
lib/param/loadparm.h

index d83fe9a7a3ae4e646ad9646c196016e653e1ea35..11422f5c4c2d3da8fc645a532a591ed5f681827f 100644 (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.
 
 
index 16cb0d47f31e5e1f16e099ceca31997fc482ccf9..15322b391f092286551ea61d72ff31e5679d7f52 100644 (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;
        }
index af6b530366a2680ff986ea03935fe246755e50db..06e40f25c84fee54ec48f04605888918246aa6ae 100644 (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.
  */