summaryrefslogtreecommitdiff
path: root/usr.bin/grep
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-06-25 04:03:48 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-06-25 04:03:48 +0000
commitc7ceba8e025f2c421c5efbb78532f6d6720d9147 (patch)
tree1c97cb5119fb50dbab6ec4e84aed16ee6b15090d /usr.bin/grep
parent15884a1ea5c69412360e1c3fa7a28972b215d18a (diff)
backwards args to gzseek
Diffstat (limited to 'usr.bin/grep')
-rw-r--r--usr.bin/grep/binary.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/grep/binary.c b/usr.bin/grep/binary.c
index e8ff9188fd8..076cad484d7 100644
--- a/usr.bin/grep/binary.c
+++ b/usr.bin/grep/binary.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: binary.c,v 1.5 2003/06/23 00:55:09 tedu Exp $ */
+/* $OpenBSD: binary.c,v 1.6 2003/06/25 04:03:47 tedu Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -61,7 +61,7 @@ gzbin_file(gzFile *f)
char buf[BUFFER_SIZE];
int i, m;
- if (gzseek(f, SEEK_SET, 0) == -1)
+ if (gzseek(f, 0L, SEEK_SET) == -1)
return 0;
if ((m = (int)gzread(f, buf, BUFFER_SIZE)) == 0)