summaryrefslogtreecommitdiff
path: root/textproc/agrep/files/patch-asearch.c
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2011-11-27 12:47:41 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2011-11-27 12:47:41 +0000
commitafcd9bf461ee813bd17c0718ef3211b5d09fc890 (patch)
treefefa270e267f6810de6521f1804e0f4e468613e5 /textproc/agrep/files/patch-asearch.c
parent- Update to 0.16 (diff)
- add missing prototypes
- add missing includes - fix build with clang Feature safe: yes
Notes
Notes: svn path=/head/; revision=286502
Diffstat (limited to 'textproc/agrep/files/patch-asearch.c')
-rw-r--r--textproc/agrep/files/patch-asearch.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/textproc/agrep/files/patch-asearch.c b/textproc/agrep/files/patch-asearch.c
new file mode 100644
index 000000000000..8dbc657ef494
--- /dev/null
+++ b/textproc/agrep/files/patch-asearch.c
@@ -0,0 +1,22 @@
+--- asearch.c.orig 1992-01-24 02:49:08.000000000 +0100
++++ asearch.c 2011-11-27 12:05:20.000000000 +0100
+@@ -6,7 +6,9 @@
+ extern CHAR CurrentFileName[];
+ extern int I, num_of_matched, TRUNCATE;
+
+-asearch(old_D_pat, text, D)
++void asearch0(CHAR old_D_pat[], int text, register unsigned D);
++
++void asearch(old_D_pat, text, D)
+ CHAR old_D_pat[]; int text; register unsigned D;
+ {
+ register unsigned i, c, r1, r2, CMask, r_NO_ERR, r_Init1;
+@@ -178,7 +180,7 @@
+ return;
+ }
+
+-asearch0(old_D_pat, text, D)
++void asearch0(old_D_pat, text, D)
+ CHAR old_D_pat[]; int text; register unsigned D;
+ {
+ register unsigned i, c, r1, r2, r3, CMask, r_NO_ERR, r_Init1, end, endpos;