lib/param: change set_variable_helper formatting
authorGarming Sam <garming@catalyst.net.nz>
Thu, 8 May 2014 00:10:04 +0000 (12:10 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 7 Jul 2014 21:32:35 +0000 (23:32 +0200)
Attempting to make the code match exactly before moving it over.

Change-Id: Id5571b00a8afd7dffc6197f2c7e020dd4fd59f85
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
lib/param/loadparm.c

index eb5cb7418962700acd7081886d37e7134f7f8a72..6437d1701bfd7f254133c2e8bd4ff826fb4f4bb2 100644 (file)
@@ -1410,7 +1410,7 @@ bool set_variable_helper(TALLOC_CTX *mem_ctx, int parmnum, void *parm_ptr,
                case P_BOOL: {
                        bool b;
                        if (!set_boolean(pszParmValue, &b)) {
-                               DEBUG(0, ("set_variable(%s): value is not "
+                               DEBUG(0, ("set_variable_helper(%s): value is not "
                                          "boolean!\n", pszParmValue));
                                return false;
                        }
@@ -1421,7 +1421,7 @@ bool set_variable_helper(TALLOC_CTX *mem_ctx, int parmnum, void *parm_ptr,
                case P_BOOLREV: {
                        bool b;
                        if (!set_boolean(pszParmValue, &b)) {
-                               DEBUG(0, ("set_variable(%s): value is not "
+                               DEBUG(0, ("set_variable_helper(%s): value is not "
                                          "boolean!\n", pszParmValue));
                                return false;
                        }
@@ -1455,7 +1455,7 @@ bool set_variable_helper(TALLOC_CTX *mem_ctx, int parmnum, void *parm_ptr,
                                }
                        }
 
-                       DEBUG(0, ("set_variable(%s): value is not "
+                       DEBUG(0, ("set_variable_helper(%s): value is not "
                                  "a valid size specifier!\n", pszParmValue));
                        return false;
                }
@@ -1464,8 +1464,9 @@ bool set_variable_helper(TALLOC_CTX *mem_ctx, int parmnum, void *parm_ptr,
                        TALLOC_FREE(*(char ***)parm_ptr);
                        *(const char * const **)parm_ptr
                                = (const char * const *)str_list_make_v3(mem_ctx,
-                                                                     pszParmValue, NULL);
+                                                                        pszParmValue, NULL);
                        break;
+
                case P_LIST:
                {
                        char **new_list = str_list_make_v3(mem_ctx,
@@ -1502,6 +1503,7 @@ bool set_variable_helper(TALLOC_CTX *mem_ctx, int parmnum, void *parm_ptr,
                        }
                        break;
                }
+
                case P_STRING:
                        lpcfg_string_set(mem_ctx, (char **)parm_ptr, pszParmValue);
                        break;