PERFORCE change 143996 for review

Gabor Kovesdan gabor at FreeBSD.org
Mon Jun 23 21:49:38 UTC 2008


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

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


More information about the p4-projects mailing list