summaryrefslogtreecommitdiff
path: root/textproc/agrep/files/patch-maskgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/agrep/files/patch-maskgen.c')
-rw-r--r--textproc/agrep/files/patch-maskgen.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/textproc/agrep/files/patch-maskgen.c b/textproc/agrep/files/patch-maskgen.c
new file mode 100644
index 000000000000..188abdff93c5
--- /dev/null
+++ b/textproc/agrep/files/patch-maskgen.c
@@ -0,0 +1,16 @@
+--- maskgen.c.orig 1992-01-17 20:14:43.000000000 +0100
++++ maskgen.c 2011-11-27 12:56:20.000000000 +0100
+@@ -2,11 +2,11 @@
+ #include "agrep.h"
+
+ extern unsigned D_endpos, endposition, Init1, wildmask;
+-extern Mask[], Bit[], Init[], NO_ERR_MASK;
++extern int Mask[], Bit[], Init[], NO_ERR_MASK;
+ extern int AND, SIMPLEPATTERN, REGEX, NOUPPER, D_length;
+ extern unsigned char Progname[];
+
+-maskgen(Pattern, D)
++int maskgen(Pattern, D)
+ unsigned char *Pattern; int D;
+ {
+ struct term { int flag; unsigned char class[WORD];