PERFORCE change 143994 for review

Gabor Kovesdan gabor at FreeBSD.org
Mon Jun 23 21:40:28 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=143994

Change 143994 by gabor at 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)


More information about the p4-projects mailing list