param: move dnsdomain from generate_param to EXTRA_GLOBALS
authorMichael Adam <obnox@samba.org>
Wed, 22 Jul 2015 17:47:22 +0000 (19:47 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 30 Jul 2015 23:55:31 +0000 (01:55 +0200)
This is alongside realm_original which is of the same kind.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/param/loadparm.h
script/generate_param.py

index 656b20db837c7e01d4e88ab68581d7b52da08ed2..89dcb17727c0032c71de0b0e87c3944991eb7058 100644 (file)
@@ -243,6 +243,7 @@ enum case_handling {CASE_LOWER,CASE_UPPER};
 
 #define LOADPARM_EXTRA_GLOBALS \
        struct parmlist_entry *param_opt;                               \
+       char *dnsdomain;                                                \
        char *realm_original;
 
 const char* server_role_str(uint32_t role);
index 7315d868a4f7b6d22fd89ace4bbb4e8beec9953b..351ea6bbb40d28945edbabb049fb8660a944e985 100644 (file)
@@ -241,7 +241,6 @@ def make_param_defs(path_in, path_out, scope):
             file_out.write("struct loadparm_global \n")
             file_out.write("{\n")
             file_out.write("\tTALLOC_CTX *ctx; /* Context for talloced members */\n")
-            file_out.write("\tchar *  dnsdomain;\n")
         elif scope == "LOCAL":
             file_out.write("/**\n")
             file_out.write(" * This structure describes a single service.\n")