summaryrefslogtreecommitdiffstats
path: root/usr.bin/grep/binary.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-06-25 17:28:00 +0000
committermillert <millert@openbsd.org>2003-06-25 17:28:00 +0000
commit0536143ada5fcdff7d64640b570b142a93d72a77 (patch)
treefeee1d2c30cd11a5f2fd19316b6f8d61ca571a19 /usr.bin/grep/binary.c
parentUpdate from 4.4 to get new-style copyright notice and trim the advert clause (diff)
downloadwireguard-openbsd-0536143ada5fcdff7d64640b570b142a93d72a77.tar.xz
wireguard-openbsd-0536143ada5fcdff7d64640b570b142a93d72a77.zip
o remove useless cast to int from gzread() call
o maxPatternLen should be size_t since that's what it is compared against o remove useless casts of NULL to various pointer types
Diffstat (limited to 'usr.bin/grep/binary.c')
-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 076cad484d7..8ea47a6316e 100644
--- a/usr.bin/grep/binary.c
+++ b/usr.bin/grep/binary.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: binary.c,v 1.6 2003/06/25 04:03:47 tedu Exp $ */
+/* $OpenBSD: binary.c,v 1.7 2003/06/25 17:28:00 millert Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -64,7 +64,7 @@ gzbin_file(gzFile *f)
if (gzseek(f, 0L, SEEK_SET) == -1)
return 0;
- if ((m = (int)gzread(f, buf, BUFFER_SIZE)) == 0)
+ if ((m = gzread(f, buf, BUFFER_SIZE)) == 0)
return 0;
for (i = 0; i < m; i++)