ports/textproc/agrep/files/patch-maskgen.c
Dirk Meyer afcd9bf461 - add missing prototypes
- add missing includes
- fix build with clang
Feature safe:	yes
2011-11-27 12:47:41 +00:00

16 lines
526 B
C

--- 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];