diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-14 21:26:08 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-14 21:26:08 +0000 |
commit | cc00df79d51119dad89c22fc9ec15f4b44f06876 (patch) | |
tree | 92319144b474a02b79d8e3d3c5c58a4b65cdc4cf /x2p | |
parent | 7bb5bfba443be93b884381f142c125de71fe95d1 (diff) | |
download | perl-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 */ |