param: rename szLdapMachineSuffix -> _ldap_machine_suffix
authorMichael Adam <obnox@samba.org>
Mon, 15 Jun 2015 22:12:51 +0000 (00:12 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 30 Jul 2015 23:55:30 +0000 (01:55 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/param/loadparm.h
lib/param/param_table.c
source3/param/loadparm.c

index 352b90b9db0365d2ff254d1583a337b920e9cfbe..ff9c8a8e87ad609d114f40c972ee0b385a24be1e 100644 (file)
@@ -254,7 +254,7 @@ enum case_handling {CASE_LOWER,CASE_UPPER};
        char *szPrintcapname;                                           \
        int CupsEncrypt;                                                \
        int  iPreferredMaster;                                          \
-       char *szLdapMachineSuffix;                                      \
+       char *_ldap_machine_suffix;                                     \
        char *szIdmapUID;                                               \
        char *szIdmapGID;                                               \
        char *szIdmapBackend;                                           \
index f4adbd38fc084005fa23eae574c2da5a34d25e3e..986def536cc6562046a4edd5ecde7ece34c199d6 100644 (file)
@@ -2834,7 +2834,7 @@ struct parm_struct parm_table[] = {
                .label          = "ldap machine suffix",
                .type           = P_STRING,
                .p_class        = P_GLOBAL,
-               .offset         = GLOBAL_VAR(szLdapMachineSuffix),
+               .offset         = GLOBAL_VAR(_ldap_machine_suffix),
                .special        = NULL,
                .enum_list      = NULL,
        },
index f43be583c1634ca013d0dbd3707d42b072d15239..0f645b6b914a1dd0cad9812ac995d27d06e2ce70 100644 (file)
@@ -725,7 +725,7 @@ static void init_globals(struct loadparm_context *lp_ctx, bool reinit_globals)
 
        string_set(Globals.ctx, &Globals.passdb_backend, "tdbsam");
        string_set(Globals.ctx, &Globals.ldap_suffix, "");
-       string_set(Globals.ctx, &Globals.szLdapMachineSuffix, "");
+       string_set(Globals.ctx, &Globals._ldap_machine_suffix, "");
        string_set(Globals.ctx, &Globals._ldap_user_suffix, "");
        string_set(Globals.ctx, &Globals._ldap_group_suffix, "");
        string_set(Globals.ctx, &Globals._ldap_idmap_suffix, "");
@@ -2361,8 +2361,8 @@ static const char *append_ldap_suffix(TALLOC_CTX *ctx, const char *str )
 
 const char *lp_ldap_machine_suffix(TALLOC_CTX *ctx)
 {
-       if (Globals.szLdapMachineSuffix[0])
-               return append_ldap_suffix(ctx, Globals.szLdapMachineSuffix);
+       if (Globals._ldap_machine_suffix[0])
+               return append_ldap_suffix(ctx, Globals._ldap_machine_suffix);
 
        return lp_string(ctx, Globals.ldap_suffix);
 }