summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-04-06 12:28:50 +0000
committerAndrew Tridgell <tridge@samba.org>2003-04-06 12:28:50 +0000
commitf82c61cefe4a30162b79c6b8226b5b7785df3133 (patch)
tree65deb6cca0943954c8a6f78ad5e763ca29ab3cce /source3/lib
parent06ee9702a00d69d4fc19925977f9741e9ffd2822 (diff)
downloadsamba-f82c61cefe4a30162b79c6b8226b5b7785df3133.tar.gz
samba-f82c61cefe4a30162b79c6b8226b5b7785df3133.tar.bz2
samba-f82c61cefe4a30162b79c6b8226b5b7785df3133.zip
strequal() returns True for equal, not an int
(This used to be commit b96590ad092e32259ce24a20a6a8a30d98dfae7d)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/iconv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/iconv.c b/source3/lib/iconv.c
index a37441b9fa..9240e24074 100644
--- a/source3/lib/iconv.c
+++ b/source3/lib/iconv.c
@@ -71,7 +71,9 @@ static struct charset_functions *find_charset_functions(const char *name)
module_path_get_name(name, stripped);
while(c) {
- if (strequal(stripped, c->name) == 0)return c;
+ if (strcasecmp(stripped, c->name) == 0) {
+ return c;
+ }
c = c->next;
}
@@ -100,7 +102,7 @@ BOOL smb_register_charset(struct charset_functions *funcs)
void lazy_initialize_iconv(void)
{
- static BOOL initialized = False;
+ static BOOL initialized;
int i;
if (!initialized) {