add some (unsigned char) casts to is*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10436 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -468,14 +468,14 @@ mput(int argc, char **argv)
|
|||||||
if (mflag && confirm(argv[0], cp)) {
|
if (mflag && confirm(argv[0], cp)) {
|
||||||
tp = cp;
|
tp = cp;
|
||||||
if (mcase) {
|
if (mcase) {
|
||||||
while (*tp && !islower(*tp)) {
|
while (*tp && !islower((unsigned char)*tp)) {
|
||||||
tp++;
|
tp++;
|
||||||
}
|
}
|
||||||
if (!*tp) {
|
if (!*tp) {
|
||||||
tp = cp;
|
tp = cp;
|
||||||
tp2 = tmpbuf;
|
tp2 = tmpbuf;
|
||||||
while ((*tp2 = *tp) != '\0') {
|
while ((*tp2 = *tp) != '\0') {
|
||||||
if (isupper(*tp2)) {
|
if (isupper((unsigned char)*tp2)) {
|
||||||
*tp2 = 'a' + *tp2 - 'A';
|
*tp2 = 'a' + *tp2 - 'A';
|
||||||
}
|
}
|
||||||
tp++;
|
tp++;
|
||||||
@@ -621,14 +621,14 @@ getit(int argc, char **argv, int restartit, char *mode)
|
|||||||
if (loc && mcase) {
|
if (loc && mcase) {
|
||||||
char *tp = argv[1], *tp2, tmpbuf[MaxPathLen];
|
char *tp = argv[1], *tp2, tmpbuf[MaxPathLen];
|
||||||
|
|
||||||
while (*tp && !islower(*tp)) {
|
while (*tp && !islower((unsigned char)*tp)) {
|
||||||
tp++;
|
tp++;
|
||||||
}
|
}
|
||||||
if (!*tp) {
|
if (!*tp) {
|
||||||
tp = argv[2];
|
tp = argv[2];
|
||||||
tp2 = tmpbuf;
|
tp2 = tmpbuf;
|
||||||
while ((*tp2 = *tp) != '\0') {
|
while ((*tp2 = *tp) != '\0') {
|
||||||
if (isupper(*tp2)) {
|
if (isupper((unsigned char)*tp2)) {
|
||||||
*tp2 = 'a' + *tp2 - 'A';
|
*tp2 = 'a' + *tp2 - 'A';
|
||||||
}
|
}
|
||||||
tp++;
|
tp++;
|
||||||
@@ -737,7 +737,7 @@ mget(int argc, char **argv)
|
|||||||
tp = cp;
|
tp = cp;
|
||||||
if (mcase) {
|
if (mcase) {
|
||||||
for (tp2 = tmpbuf; (ch = *tp++);)
|
for (tp2 = tmpbuf; (ch = *tp++);)
|
||||||
*tp2++ = isupper(ch) ? tolower(ch) : ch;
|
*tp2++ = tolower(ch);
|
||||||
*tp2 = '\0';
|
*tp2 = '\0';
|
||||||
tp = tmpbuf;
|
tp = tmpbuf;
|
||||||
}
|
}
|
||||||
@@ -1831,7 +1831,7 @@ domap(char *name)
|
|||||||
break;
|
break;
|
||||||
case '[':
|
case '[':
|
||||||
LOOP:
|
LOOP:
|
||||||
if (*++cp2 == '$' && isdigit(*(cp2+1))) {
|
if (*++cp2 == '$' && isdigit((unsigned char)*(cp2+1))) {
|
||||||
if (*++cp2 == '0') {
|
if (*++cp2 == '0') {
|
||||||
char *cp3 = name;
|
char *cp3 = name;
|
||||||
|
|
||||||
@@ -1856,7 +1856,7 @@ LOOP:
|
|||||||
cp2++;
|
cp2++;
|
||||||
}
|
}
|
||||||
else if (*cp2 == '$' &&
|
else if (*cp2 == '$' &&
|
||||||
isdigit(*(cp2+1))) {
|
isdigit((unsigned char)*(cp2+1))) {
|
||||||
if (*++cp2 == '0') {
|
if (*++cp2 == '0') {
|
||||||
char *cp3 = name;
|
char *cp3 = name;
|
||||||
|
|
||||||
@@ -1908,7 +1908,7 @@ LOOP:
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '$':
|
case '$':
|
||||||
if (isdigit(*(cp2 + 1))) {
|
if (isdigit((unsigned char)*(cp2 + 1))) {
|
||||||
if (*++cp2 == '0') {
|
if (*++cp2 == '0') {
|
||||||
char *cp3 = name;
|
char *cp3 = name;
|
||||||
|
|
||||||
|
@@ -1238,9 +1238,9 @@ yylex(void)
|
|||||||
cpos++;
|
cpos++;
|
||||||
return (SP);
|
return (SP);
|
||||||
}
|
}
|
||||||
if (isdigit(cbuf[cpos])) {
|
if (isdigit((unsigned char)cbuf[cpos])) {
|
||||||
cp = &cbuf[cpos];
|
cp = &cbuf[cpos];
|
||||||
while (isdigit(cbuf[++cpos]))
|
while (isdigit((unsigned char)cbuf[++cpos]))
|
||||||
;
|
;
|
||||||
c = cbuf[cpos];
|
c = cbuf[cpos];
|
||||||
cbuf[cpos] = '\0';
|
cbuf[cpos] = '\0';
|
||||||
@@ -1253,9 +1253,9 @@ yylex(void)
|
|||||||
goto dostr1;
|
goto dostr1;
|
||||||
|
|
||||||
case ARGS:
|
case ARGS:
|
||||||
if (isdigit(cbuf[cpos])) {
|
if (isdigit((unsigned char)cbuf[cpos])) {
|
||||||
cp = &cbuf[cpos];
|
cp = &cbuf[cpos];
|
||||||
while (isdigit(cbuf[++cpos]))
|
while (isdigit((unsigned char)cbuf[++cpos]))
|
||||||
;
|
;
|
||||||
c = cbuf[cpos];
|
c = cbuf[cpos];
|
||||||
cbuf[cpos] = '\0';
|
cbuf[cpos] = '\0';
|
||||||
|
Reference in New Issue
Block a user