summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-18 15:56:07 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-18 15:56:07 +0200
commit89c95454300f28b0241a44fc2aa7886304c90824 (patch)
tree60b329935794e8d16d1244f1fe98efe242c4991a /source3/param
parent23c95c9119848aba47a5d533a75c92a9d7a0bc95 (diff)
downloadsamba-89c95454300f28b0241a44fc2aa7886304c90824.tar.gz
samba-89c95454300f28b0241a44fc2aa7886304c90824.tar.bz2
samba-89c95454300f28b0241a44fc2aa7886304c90824.zip
Use str_list_equal() rather than str_list_compare().
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 3401bd16a0..d91d34d29b 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -7423,7 +7423,7 @@ static bool equal_parameter(parm_type type, void *ptr1, void *ptr2)
return (*((char *)ptr1) == *((char *)ptr2));
case P_LIST:
- return str_list_compare(*(char ***)ptr1, *(char ***)ptr2);
+ return str_list_equal(*(const char ***)ptr1, *(const char ***)ptr2);
case P_STRING:
case P_USTRING:
@@ -7512,8 +7512,8 @@ static bool is_default(int i)
return False;
switch (parm_table[i].type) {
case P_LIST:
- return str_list_compare (parm_table[i].def.lvalue,
- *(char ***)parm_table[i].ptr);
+ return str_list_equal((const char **)parm_table[i].def.lvalue,
+ *(const char ***)parm_table[i].ptr);
case P_STRING:
case P_USTRING:
return strequal(parm_table[i].def.svalue,