summaryrefslogtreecommitdiff
path: root/source3/lib/charset.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/charset.c')
-rw-r--r--source3/lib/charset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/charset.c b/source3/lib/charset.c
index 5e9481f9bb..abfa6fe787 100644
--- a/source3/lib/charset.c
+++ b/source3/lib/charset.c
@@ -161,7 +161,7 @@ void charset_initialise(void)
}
for (i=0;i<=127;i++) {
- if (isalnum((char)i) || strchr("._^$~!#%&-{}()@'`",(char)i))
+ if (isalnum(i) || strchr("._^$~!#%&-{}()@'`",(char)i))
add_dos_char(i,False,0,False);
}
@@ -172,8 +172,8 @@ void charset_initialise(void)
/* Some systems have buggy isupper/islower for characters
above 127. Best not to rely on them. */
if(i < 128) {
- if (isupper(c)) lower_char_map[i] = tolower(c);
- if (islower(c)) upper_char_map[i] = toupper(c);
+ if (isupper((int)c)) lower_char_map[i] = tolower(c);
+ if (islower((int)c)) upper_char_map[i] = toupper(c);
}
}
}