summaryrefslogtreecommitdiff
path: root/textproc/bsdgrep-devel/patches/patch-ab
blob: de34582998b0312de1331c0542611ecb83eb92fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-ab,v 1.3 2005/12/18 14:27:01 joerg Exp $

--- file.c.orig	2004-01-02 15:00:27.000000000 +0000
+++ file.c
@@ -34,10 +34,10 @@
 
 #include <sys/param.h>
 
+#include <zlib.h>
 #include <err.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <zlib.h>
 
 #include "grep.h"
 
@@ -122,7 +122,7 @@ gzfgetln(gzFile *f, size_t *len)
 }
 
 file_t *
-grep_fdopen(int fd, char *mode)
+grep_fdopen(int fd, const char *mode)
 {
 	file_t *f;
 
@@ -148,7 +148,7 @@ grep_fdopen(int fd, char *mode)
 }
 
 file_t *
-grep_open(char *path, char *mode)
+grep_open(const char *path, const char *mode)
 {
 	file_t *f;