diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-20 10:02:30 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-20 10:02:30 +0000 |
commit | cc6c263993eaf0715f231fc80ca7e6e65694548b (patch) | |
tree | 3dfb8b996e1230bc8909250405bc7df61e9ade4e /source/lib/username.c | |
parent | 102af994de6bbfbe94f13c1880fc31c6414c9f8e (diff) | |
download | samba-cc6c263993eaf0715f231fc80ca7e6e65694548b.tar.gz samba-cc6c263993eaf0715f231fc80ca7e6e65694548b.tar.xz samba-cc6c263993eaf0715f231fc80ca7e6e65694548b.zip |
fixed warnings on irix and crash bug on big endian machines
Diffstat (limited to 'source/lib/username.c')
-rw-r--r-- | source/lib/username.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/lib/username.c b/source/lib/username.c index 17627d4dae0..8154a2b40e4 100644 --- a/source/lib/username.c +++ b/source/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); |