From cc00df79d51119dad89c22fc9ec15f4b44f06876 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Fri, 14 Dec 2001 21:26:08 +0000 Subject: Silence compiler worries found by Schwern/Digital cc. p4raw-id: //depot/perl@13691 --- x2p/str.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'x2p/str.c') 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 */ -- cgit v1.2.1