X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/a42744386c68b582b923eeaf6a7a6ffc7e00b31f..f28b61f26dec986fb87602b5c75ad812b8297d85:/newsearch/ns-gt.c diff --git a/newsearch/ns-gt.c b/newsearch/ns-gt.c index 2e987ada..545e9fdc 100644 --- a/newsearch/ns-gt.c +++ b/newsearch/ns-gt.c @@ -17,7 +17,7 @@ struct gt_localdata { void gt_free(searchCtx *ctx, struct searchNode *thenode); void *gt_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput); -struct searchNode *gt_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *gt_parse(searchCtx *ctx, int argc, char **argv) { struct gt_localdata *localdata; struct searchNode *thenode; int i; @@ -49,7 +49,7 @@ struct searchNode *gt_parse(searchCtx *ctx, int type, int argc, char **argv) { for (i=0;inodes[i] = ctx->parser(ctx, type, argv[i]); + localdata->nodes[i] = ctx->parser(ctx, argv[i]); /* Subsequent nodes get coerced to match the type of the first node */ if (i)