X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/b76037ebf0c2dbf8860a0899c9051ff589498cba..f33f3f52f58acdd2b9b6796713ac8f24d9881545:/newsearch/ns-regex.c diff --git a/newsearch/ns-regex.c b/newsearch/ns-regex.c index 8876d1cb..5d86ecc7 100644 --- a/newsearch/ns-regex.c +++ b/newsearch/ns-regex.c @@ -19,7 +19,7 @@ struct regex_localdata { void *regex_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput); void regex_free(searchCtx *ctx, struct searchNode *thenode); -struct searchNode *regex_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *regex_parse(searchCtx *ctx, int argc, char **argv) { struct regex_localdata *localdata; struct searchNode *thenode; struct searchNode *targnode, *patnode; @@ -33,11 +33,11 @@ struct searchNode *regex_parse(searchCtx *ctx, int type, int argc, char **argv) return NULL; } - targnode=ctx->parser(ctx, type, argv[0]); + targnode=ctx->parser(ctx, argv[0]); if (!(targnode = coerceNode(ctx,targnode, RETURNTYPE_STRING))) return NULL; - patnode=ctx->parser(ctx, type, argv[1]); + patnode=ctx->parser(ctx, argv[1]); if (!(patnode = coerceNode(ctx,patnode, RETURNTYPE_STRING))) { (targnode->free)(ctx, targnode); return NULL;