summaryrefslogtreecommitdiffstats
path: root/contrib/awk/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/awk/io.c')
-rw-r--r--contrib/awk/io.c14
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)
OpenPOWER on IntegriCloud