From abd8c8d62ca25c2cb395fca11469a8919714eaba Mon Sep 17 00:00:00 2001 From: Sevan Janiyan Date: Sat, 17 Nov 2018 20:12:32 +0000 Subject: [PATCH] minix/usr.bin/grep - Update gzFile parameter types following zlib update. --- minix/usr.bin/grep/binary.c | 2 +- minix/usr.bin/grep/file.c | 4 ++-- minix/usr.bin/grep/grep.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/minix/usr.bin/grep/binary.c b/minix/usr.bin/grep/binary.c index 1a22a6b2e..09d868958 100644 --- a/minix/usr.bin/grep/binary.c +++ b/minix/usr.bin/grep/binary.c @@ -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/minix/usr.bin/grep/file.c b/minix/usr.bin/grep/file.c index a10652228..45ea21461 100644 --- a/minix/usr.bin/grep/file.c +++ b/minix/usr.bin/grep/file.c @@ -53,12 +53,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/minix/usr.bin/grep/grep.h b/minix/usr.bin/grep/grep.h index 255a78fa5..d8f28c75f 100644 --- a/minix/usr.bin/grep/grep.h +++ b/minix/usr.bin/grep/grep.h @@ -121,6 +121,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);