summaryrefslogtreecommitdiffstats
path: root/source3/lib
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/lib
parent23c95c9119848aba47a5d533a75c92a9d7a0bc95 (diff)
downloadsamba-89c95454300f28b0241a44fc2aa7886304c90824.tar.gz
samba-89c95454300f28b0241a44fc2aa7886304c90824.tar.xz
samba-89c95454300f28b0241a44fc2aa7886304c90824.zip
Use str_list_equal() rather than str_list_compare().
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_str.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 5d1893a85b5..80aaa2b9c02 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -1843,29 +1843,6 @@ int fstr_sprintf(fstring s, const char *fmt, ...)
#define S_LIST_ABS 16 /* List Allocation Block Size */
-/**
- * Return true if all the elements of the list match exactly.
- **/
-bool str_list_compare(char **list1, char **list2)
-{
- int num;
-
- if (!list1 || !list2)
- return (list1 == list2);
-
- for (num = 0; list1[num]; num++) {
- if (!list2[num])
- return false;
- if (!strcsequal(list1[num], list2[num]))
- return false;
- }
- if (list2[num])
- return false; /* if list2 has more elements than list1 fail */
-
- return true;
-}
-
-
/******************************************************************************
version of standard_sub_basic() for string lists; uses talloc_sub_basic()
for the work