if (mflag && confirm(argv[0], cp)) {
tp = cp;
if (mcase) {
- while (*tp && !islower((int) (*tp))) {
+ while (*tp && !islower((unsigned char) (*tp))) {
tp++;
}
if (!*tp) {
tp = cp;
tp2 = tmpbuf;
while ((*tp2 = *tp) != 0) {
- if (isupper((int) *tp2)) {
+ if (isupper((unsigned char) *tp2)) {
*tp2 = 'a' + *tp2 - 'A';
}
tp++;
if (loc && mcase) {
char *tp = argv[1], *tp2, tmpbuf[MAXPATHLEN];
- while (*tp && !islower((int) *tp)) {
+ while (*tp && !islower((unsigned char) *tp)) {
tp++;
}
if (!*tp) {
tp = argv[2];
tp2 = tmpbuf;
while ((*tp2 = *tp) != 0) {
- if (isupper((int) *tp2)) {
+ if (isupper((unsigned char) *tp2)) {
*tp2 = 'a' + *tp2 - 'A';
}
tp++;
if (mflag && confirm(argv[0], cp)) {
tp = cp;
if (mcase) {
- while (*tp && !islower((int) *tp)) {
+ while (*tp && !islower((unsigned char) *tp)) {
tp++;
}
if (!*tp) {
tp = cp;
tp2 = tmpbuf;
while ((*tp2 = *tp) != 0) {
- if (isupper((int) *tp2)) {
+ if (isupper((unsigned char) *tp2)) {
*tp2 = 'a' + *tp2 - 'A';
}
tp++;
*/
if ((c == ' ') || !isascii(c))
n = 1;
- else if (islower((int) c))
- *cp = toupper((int) c);
+ else if (islower((unsigned char) c))
+ *cp = toupper((unsigned char) c);
}
/*
for (op=acle_ops; *op; op++) {
char rop;
- rop = (isupper((int) *op)) ? tolower((int) *op) : *op;
+ rop = (isupper((unsigned char) *op)) ? tolower((unsigned char) *op) : *op;
found = 0;
for (t=0; acl_op_table[t].ao_op; t++) {
if (rop == acl_op_table[t].ao_op) {
return KADM5_PASS_Q_TOOSHORT;
s = password;
while ((c = *s++)) {
- if (islower((int) c)) {
+ if (islower((unsigned char) c)) {
nlower = 1;
continue;
}
- else if (isupper((int) c)) {
+ else if (isupper((unsigned char) c)) {
nupper = 1;
continue;
- } else if (isdigit((int) c)) {
+ } else if (isdigit((unsigned char) c)) {
ndigit = 1;
continue;
- } else if (ispunct((int) c)) {
+ } else if (ispunct((unsigned char) c)) {
npunct = 1;
continue;
} else {
{
char *q;
for (q=start; *q; q++)
- if (isupper((int) *q))
- *q=tolower((int) *q);
+ if (isupper((unsigned char) *q))
+ *q=tolower((unsigned char) *q);
return(start);
}
\f
pfxlen = cp - name;
- if ( pfxlen == 1 && isalpha(name[0]) ) {
+ if ( pfxlen == 1 && isalpha((unsigned char) name[0]) ) {
/* We found a drive letter not a prefix - use FILE: */
pfx = strdup("FILE:");
if (!pfx)
pfxlen = cp - name;
- if ( pfxlen == 1 && isalpha(name[0]) ) {
+ if ( pfxlen == 1 && isalpha((unsigned char) name[0]) ) {
/* We found a drive letter not a prefix - use FILE: */
pfx = strdup("FILE:");
if (!pfx)
return retval;
if (domain) {
for (cp = domain; *cp; cp++)
- if (isupper((int) (*cp)))
- *cp = tolower((int) *cp);
+ if (isupper((unsigned char) (*cp)))
+ *cp = tolower((unsigned char) *cp);
strncat(buf, ".", sizeof(buf) - 1 - strlen(buf));
strncat(buf, domain, sizeof(buf) - 1 - strlen(buf));
krb5_xfree(domain);
}
for (cp = local_host; *cp; cp++) {
- if (isupper((int) (*cp)))
- *cp = tolower((int) *cp);
+ if (isupper((unsigned char) (*cp)))
+ *cp = tolower((unsigned char) *cp);
}
l = strlen(local_host);
/* strip off trailing dot */
/* Assume the realm name is upper case */
for (cp = realm; *cp; cp++)
- if (islower((int) (*cp)))
- *cp = toupper((int) *cp);
+ if (islower((unsigned char) (*cp)))
+ *cp = toupper((unsigned char) *cp);
} else {
/* We are defaulting to the local realm */
retval = krb5_get_default_realm(context, &realm);
if (type == KRB5_NT_SRV_HST)
for (cp = remote_host; *cp; cp++)
- if (isupper((int) (*cp)))
- *cp = tolower((int) (*cp));
+ if (isupper((unsigned char) (*cp)))
+ *cp = tolower((unsigned char) (*cp));
/*
* Windows NT5's broken resolver gratuitously tacks on a
for (lo = 0, dp = d->data, cp = s; *cp; cp++) {
if (*cp < 0)
return ASN1_PARSE_ERROR;
- else if (isspace(*cp))
+ else if (isspace((unsigned char) *cp))
continue;
- else if (isxdigit(*cp)) {
+ else if (isxdigit((unsigned char) *cp)) {
buf[0] = *cp;
v = strtol(buf, NULL, 16);
} else