diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2011-11-27 12:47:41 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2011-11-27 12:47:41 +0000 |
commit | afcd9bf461ee813bd17c0718ef3211b5d09fc890 (patch) | |
tree | fefa270e267f6810de6521f1804e0f4e468613e5 /textproc/agrep/files/patch-maskgen.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-maskgen.c')
-rw-r--r-- | textproc/agrep/files/patch-maskgen.c | 16 |
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]; |