From 83fb6e599485b07a15b123564731390e07b1d117 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 13 Mar 2004 22:31:55 +0000 Subject: [PATCH] Make regex-t compile. --- lib/regex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); -- 2.39.2