mirror of
https://github.com/samba-team/samba.git
synced 2025-11-20 08:23:50 +03:00
r8394: Make sure the argument to ctype is*(3) macros are unsigned char as
required by ISO C99.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
707e3726d3
commit
56fd21c806
@@ -159,7 +159,8 @@ int strwicmp(const char *psz1, const char *psz2)
|
||||
psz1++;
|
||||
while (isspace((int)*psz2))
|
||||
psz2++;
|
||||
if (toupper(*psz1) != toupper(*psz2) || *psz1 == '\0'
|
||||
if (toupper((unsigned char)*psz1) != toupper((unsigned char)*psz2)
|
||||
|| *psz1 == '\0'
|
||||
|| *psz2 == '\0')
|
||||
break;
|
||||
psz1++;
|
||||
@@ -412,12 +413,12 @@ size_t strhex_to_str(char *p, size_t len, const char *strhex)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!(p1 = strchr_m(hexchars, toupper(strhex[i]))))
|
||||
if (!(p1 = strchr_m(hexchars, toupper((unsigned char)strhex[i]))))
|
||||
break;
|
||||
|
||||
i++; /* next hex digit */
|
||||
|
||||
if (!(p2 = strchr_m(hexchars, toupper(strhex[i]))))
|
||||
if (!(p2 = strchr_m(hexchars, toupper((unsigned char)strhex[i]))))
|
||||
break;
|
||||
|
||||
/* get the two nybbles */
|
||||
|
||||
Reference in New Issue
Block a user