From b30a4fc9ee917f4547e3038fa64e6b5b189104b9 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 20 Nov 2001 08:15:22 +0000 Subject: remove gcc warnings --- istream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'istream.c') diff --git a/istream.c b/istream.c index 601a645..aed9e9c 100644 --- a/istream.c +++ b/istream.c @@ -1,4 +1,4 @@ -/* $Id: istream.c,v 1.4 2001/11/16 22:02:00 ukai Exp $ */ +/* $Id: istream.c,v 1.5 2001/11/20 08:15:22 ukai Exp $ */ #include "fm.h" #include "istream.h" #include @@ -229,7 +229,7 @@ StrISgets(InputStream stream) do_update(base); } else { - if (p = memchr(&sb->buf[sb->cur], '\n', sb->next - sb->cur)) { + if ((p = memchr(&sb->buf[sb->cur], '\n', sb->next - sb->cur))) { len = p - &sb->buf[sb->cur] + 1; if (s == NULL) s = Strnew_size(len); -- cgit v1.2.3