summaryrefslogtreecommitdiff
path: root/source3/lib/username.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-20 10:02:30 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-20 10:02:30 +0000
commit93d458c5f68a7168ce543e820906bc55a5d3a339 (patch)
treed12058b745c122f95c005b23047a32e716011ed0 /source3/lib/username.c
parent89f97bb254ac71b5fff8bf6d703578ac900c7ed1 (diff)
downloadsamba-93d458c5f68a7168ce543e820906bc55a5d3a339.tar.gz
samba-93d458c5f68a7168ce543e820906bc55a5d3a339.tar.bz2
samba-93d458c5f68a7168ce543e820906bc55a5d3a339.zip
fixed warnings on irix and crash bug on big endian machines
(This used to be commit cc6c263993eaf0715f231fc80ca7e6e65694548b)
Diffstat (limited to 'source3/lib/username.c')
-rw-r--r--source3/lib/username.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/username.c b/source3/lib/username.c
index 17627d4dae..8154a2b40e 100644
--- a/source3/lib/username.c
+++ b/source3/lib/username.c
@@ -127,13 +127,13 @@ BOOL map_username(char *user)
*dosname++ = 0;
- while (isspace(*unixname))
+ while (isspace((int)*unixname))
unixname++;
if ('!' == *unixname) {
return_if_mapped = True;
unixname++;
- while (*unixname && isspace(*unixname))
+ while (*unixname && isspace((int)*unixname))
unixname++;
}
@@ -142,7 +142,7 @@ BOOL map_username(char *user)
{
int l = strlen(unixname);
- while (l && isspace(unixname[l-1])) {
+ while (l && isspace((int)unixname[l-1])) {
unixname[l-1] = 0;
l--;
}
@@ -574,7 +574,7 @@ static struct passwd *uname_string_combinations2(char *s,int offset,struct passw
for (i=offset;i<(len-(N-1));i++) {
char c = s[i];
- if (!islower(c))
+ if (!islower((int)c))
continue;
s[i] = toupper(c);
ret = uname_string_combinations2(s,i+1,fn,N-1);