From: Martin Mares Date: Sat, 13 Mar 2004 22:31:55 +0000 (+0000) Subject: Make regex-t compile. X-Git-Tag: holmes-import~1098 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=83fb6e599485b07a15b123564731390e07b1d117;p=libucw.git Make regex-t compile. --- diff --git a/lib/regex.c b/lib/regex.c index ce230848..b9037ae3 100644 --- a/lib/regex.c +++ b/lib/regex.c @@ -113,12 +113,12 @@ rx_subst(regex *r, byte *by, byte *src, byte *dest, uns destlen) #ifdef TEST -void main(int argc, char **argv) +int main(int argc, char **argv) { regex *r; byte buf1[256], buf2[256]; - r = rx_compile(argv[1]); + r = rx_compile(argv[1], 0); while (fgets(buf1, sizeof(buf1), stdin)) { char *p = strchr(buf1, '\n');