Date: Mon, 23 Jun 2008 21:40:27 GMT From: Gabor Kovesdan <gabor@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 143994 for review Message-ID: <200806232140.m5NLeRBJ030472@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=143994 Change 143994 by gabor@gabor_server on 2008/06/23 21:39:58 - Small cleanup Affected files ... .. //depot/projects/soc2008/gabor_textproc/grep/binary.c#7 edit Differences ... ==== //depot/projects/soc2008/gabor_textproc/grep/binary.c#7 (text+ko) ==== @@ -48,10 +48,9 @@ bin_file(FILE *f) { char buf[BUFSIZ]; - size_t i, m; - int ret = 0; + int i, m, ret = 0; - if (fseek(f, 0L, SEEK_SET) == -1) + if (fseek(f, 0, SEEK_SET) == -1) return (0); if ((m = fread(buf, 1, BUFSIZ, f)) == 0) @@ -71,10 +70,9 @@ gzbin_file(gzFile *f) { char buf[BUFSIZ]; - int i, m; - int ret = 0; + int i, m, ret = 0; - if (gzseek(f, (z_off_t)0, SEEK_SET) == -1) + if (gzseek(f, 0, 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?200806232140.m5NLeRBJ030472>