From f82c61cefe4a30162b79c6b8226b5b7785df3133 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 6 Apr 2003 12:28:50 +0000 Subject: strequal() returns True for equal, not an int (This used to be commit b96590ad092e32259ce24a20a6a8a30d98dfae7d) --- source3/lib/iconv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/lib') 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) { -- cgit