Date: Mon, 23 Jun 2008 21:49:37 GMT From: Gabor Kovesdan <gabor@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 143996 for review Message-ID: <200806232149.m5NLnbcH031327@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=143996 Change 143996 by gabor@gabor_server on 2008/06/23 21:48:46 - Revert unwanted changes Affected files ... .. //depot/projects/soc2008/gabor_textproc/grep/binary.c#8 edit Differences ... ==== //depot/projects/soc2008/gabor_textproc/grep/binary.c#8 (text+ko) ==== @@ -48,9 +48,10 @@ bin_file(FILE *f) { char buf[BUFSIZ]; - int i, m, ret = 0; + size_t i, m; + int ret = 0; - if (fseek(f, 0, SEEK_SET) == -1) + if (fseek(f, 0L, SEEK_SET) == -1) return (0); if ((m = fread(buf, 1, BUFSIZ, f)) == 0) @@ -72,7 +73,7 @@ char buf[BUFSIZ]; int i, m, ret = 0; - if (gzseek(f, 0, SEEK_SET) == -1) + if (gzseek(f, 0L, SEEK_SET) == -1) return (0); if ((m = gzread(f, buf, BUFSIZ)) <= 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806232149.m5NLnbcH031327>