X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/da1d89d5558fe9db3274900bffe47ec53d63da68..f33f3f52f58acdd2b9b6796713ac8f24d9881545:/newsearch/ns-match.c diff --git a/newsearch/ns-match.c b/newsearch/ns-match.c index 1fe12548..a4dba15d 100644 --- a/newsearch/ns-match.c +++ b/newsearch/ns-match.c @@ -16,7 +16,7 @@ struct match_localdata { void *match_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput); void match_free(searchCtx *ctx, struct searchNode *thenode); -struct searchNode *match_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *match_parse(searchCtx *ctx, int argc, char **argv) { struct match_localdata *localdata; struct searchNode *thenode; struct searchNode *targnode, *patnode; @@ -27,11 +27,11 @@ struct searchNode *match_parse(searchCtx *ctx, int type, int argc, char **argv) } /* @fixme check this works with new parsing semantics */ - 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;