summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2021-03-10 21:55:23 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2021-03-10 21:55:23 +0000
commit2f18b321e836d9897be1c0a87a0e6765eba09f85 (patch)
tree982af8ce33d9d6d7f91bacc72a7393b03ac0da28
parenta0897bf2309e98515813fa2bc68b2199c9eb9a42 (diff)
zlib functions take a gzFile not gzFile * (gzFile is already a pointer).
From Josh Rickmar.
-rw-r--r--usr.bin/grep/binary.c4
-rw-r--r--usr.bin/grep/file.c6
-rw-r--r--usr.bin/grep/grep.h4
3 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/grep/binary.c b/usr.bin/grep/binary.c
index 1a22a6b2e71..119c9466aed 100644
--- a/usr.bin/grep/binary.c
+++ b/usr.bin/grep/binary.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: binary.c,v 1.18 2013/11/12 22:50:42 deraadt Exp $ */
+/* $OpenBSD: binary.c,v 1.19 2021/03/10 21:55:22 millert Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -62,7 +62,7 @@ bin_file(FILE *f)
#ifndef NOZ
int
-gzbin_file(gzFile *f)
+gzbin_file(gzFile f)
{
char buf[BUFSIZ];
int m;
diff --git a/usr.bin/grep/file.c b/usr.bin/grep/file.c
index 0cfeaa808ed..27b7f765abf 100644
--- a/usr.bin/grep/file.c
+++ b/usr.bin/grep/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.15 2019/01/31 01:30:46 tedu Exp $ */
+/* $OpenBSD: file.c,v 1.16 2021/03/10 21:55:22 millert Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -49,12 +49,12 @@ struct file {
int noseek;
FILE *f;
mmf_t *mmf;
- gzFile *gzf;
+ gzFile gzf;
};
#ifndef NOZ
static char *
-gzfgetln(gzFile *f, size_t *len)
+gzfgetln(gzFile f, size_t *len)
{
size_t n;
int c;
diff --git a/usr.bin/grep/grep.h b/usr.bin/grep/grep.h
index b3d24ae662b..731bbcc35af 100644
--- a/usr.bin/grep/grep.h
+++ b/usr.bin/grep/grep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: grep.h,v 1.27 2019/10/07 17:47:32 tedu Exp $ */
+/* $OpenBSD: grep.h,v 1.28 2021/03/10 21:55:22 millert Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -124,6 +124,6 @@ void grep_close(file_t *f);
/* binary.c */
int bin_file(FILE * f);
-int gzbin_file(gzFile * f);
+int gzbin_file(gzFile f);
int mmbin_file(mmf_t *f);