summaryrefslogtreecommitdiffstats
path: root/usr.bin/more/ch.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-10-09 15:40:07 +0000
committerache <ache@FreeBSD.org>1994-10-09 15:40:07 +0000
commitedad1978e61f52a5e107dcf09a9bb65251827e2e (patch)
tree5f52bb66eeeb681bc863abadd83a239896176825 /usr.bin/more/ch.c
parente0df6f34b872fe102ae8bca83de853062d740c79 (diff)
downloadFreeBSD-src-edad1978e61f52a5e107dcf09a9bb65251827e2e.zip
FreeBSD-src-edad1978e61f52a5e107dcf09a9bb65251827e2e.tar.gz
Back out part of ctype fixes, unneded with new ctypoe
Diffstat (limited to 'usr.bin/more/ch.c')
-rw-r--r--usr.bin/more/ch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/more/ch.c b/usr.bin/more/ch.c
index a971c76..ab12946 100644
--- a/usr.bin/more/ch.c
+++ b/usr.bin/more/ch.c
@@ -96,7 +96,7 @@ static off_t last_piped_pos;
#define ch_get() \
((buf_head->block == ch_block && \
ch_offset < buf_head->datasize) ? \
- buf_head->data[ch_offset] & 0xff : fch_get())
+ (unsigned char)buf_head->data[ch_offset] : fch_get())
static
fch_get()
@@ -130,7 +130,7 @@ fch_get()
* find it already buffered.
*/
if (ispipe)
- return(bp->data[ch_offset] & 0xff);
+ return((unsigned char)bp->data[ch_offset]);
goto found;
}
/*
@@ -233,7 +233,7 @@ found:
*/
goto read_more;
- return(bp->data[ch_offset] & 0xff);
+ return((unsigned char)bp->data[ch_offset]);
}
/*
OpenPOWER on IntegriCloud