summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-12-14 21:26:08 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-14 21:26:08 +0000
commitcc00df79d51119dad89c22fc9ec15f4b44f06876 (patch)
tree92319144b474a02b79d8e3d3c5c58a4b65cdc4cf /x2p
parent7bb5bfba443be93b884381f142c125de71fe95d1 (diff)
downloadperl-cc00df79d51119dad89c22fc9ec15f4b44f06876.tar.gz
Silence compiler worries found by Schwern/Digital cc.
p4raw-id: //depot/perl@13691
Diffstat (limited to 'x2p')
-rw-r--r--x2p/str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/x2p/str.c b/x2p/str.c
index 47dc9ecf7c..084898904c 100644
--- a/x2p/str.c
+++ b/x2p/str.c
@@ -282,7 +282,7 @@ str_gets(register STR *str, register FILE *fp)
if (str->str_len <= cnt) /* make sure we have the room */
GROWSTR(&(str->str_ptr), &(str->str_len), cnt+1);
bp = str->str_ptr; /* move these two too to registers */
- ptr = FILE_ptr(fp);
+ ptr = (STDCHAR*)FILE_ptr(fp);
for (;;) {
while (--cnt >= 0) {
if ((*bp++ = *ptr++) == newline) {
@@ -296,7 +296,7 @@ str_gets(register STR *str, register FILE *fp)
}
FILE_cnt(fp) = cnt; /* deregisterize cnt and ptr */
- FILE_ptr(fp) = ptr;
+ FILE_ptr(fp) = (void*)ptr; /* LHS STDCHAR* cast non-portable */
i = getc(fp); /* get more characters */
cnt = FILE_cnt(fp);
ptr = FILE_ptr(fp); /* reregisterize cnt and ptr */
@@ -316,7 +316,7 @@ str_gets(register STR *str, register FILE *fp)
thats_all_folks:
FILE_cnt(fp) = cnt; /* put these back or we're in trouble */
- FILE_ptr(fp) = ptr;
+ FILE_ptr(fp) = (STDCHAR*)ptr;
*bp = '\0';
str->str_cur = bp - str->str_ptr; /* set length */