diff options
author | ache <ache@FreeBSD.org> | 1997-10-26 12:14:54 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-10-26 12:14:54 +0000 |
commit | 105ae2c382b7a2c0420be6bd7b24da661805d6d2 (patch) | |
tree | 39b4d1af3e193a0ac6091c29ec198e975aeec4ba /contrib/awk/io.c | |
parent | 1433c9c29edb81cd29e7e2b588d73ec32b9698b6 (diff) | |
download | FreeBSD-src-105ae2c382b7a2c0420be6bd7b24da661805d6d2.zip FreeBSD-src-105ae2c382b7a2c0420be6bd7b24da661805d6d2.tar.gz |
Back out (unsigned char) cast, will use -funsigned-char instead
Diffstat (limited to 'contrib/awk/io.c')
-rw-r--r-- | contrib/awk/io.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/awk/io.c b/contrib/awk/io.c index 5db2796..74d9a8d 100644 --- a/contrib/awk/io.c +++ b/contrib/awk/io.c @@ -1540,9 +1540,9 @@ int *errcode; /* pointer to error variable */ else rs = (char) grRS; - onecase = (IGNORECASE && isalpha((unsigned char)rs)); + onecase = (IGNORECASE && isalpha(rs)); if (onecase) - rs = casetable[(unsigned char)rs]; + rs = casetable[rs]; /* set up sentinel */ if (iop->buf) { @@ -1703,7 +1703,7 @@ int *errcode; /* pointer to error variable */ } /* search for RS, #2, RS = <single char> */ if (onecase) { - while (casetable[(unsigned char) *bp++] != rs) + while (casetable[(int) *bp++] != rs) continue; } else { while (*bp++ != rs) @@ -1732,7 +1732,7 @@ int *errcode; /* pointer to error variable */ bstart = iop->off = bp; bp--; - if (onecase ? casetable[(unsigned char) *bp] != rs : *bp != rs) { + if (onecase ? casetable[(int) *bp] != rs : *bp != rs) { bp++; bstart = bp; } @@ -1816,9 +1816,9 @@ int *errcode; /* pointer to error variable */ else rs = (char) grRS; - onecase = (IGNORECASE && isalpha((unsigned char)rs)); + onecase = (IGNORECASE && isalpha(rs)); if (onecase) - rs = casetable[(unsigned char)rs]; + rs = casetable[rs]; /* if RS = "", skip leading newlines at the front of the file */ if (grRS == FALSE && iop->off == iop->buf) { @@ -1891,7 +1891,7 @@ int *errcode; /* pointer to error variable */ */ /* search for RS, #2, RS = <single char> */ if (onecase) { - while (bp < end && casetable[(unsigned char)*bp++] != rs) + while (bp < end && casetable[*bp++] != rs) continue; } else { while (bp < end && *bp++ != rs) |