]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-and.c
SearchCtx should contain 'type' - this is to make life easier when defining new searc...
[irc/quakenet/newserv.git] / newsearch / ns-and.c
index 57046818641bdb91e5cf44ee5265612be8cfffcc..2a341c226ed77c139b2a540cff5e0b0f5ffff3aa 100644 (file)
@@ -15,7 +15,7 @@ struct and_localdata {
   searchNode **nodes;
 };
 
-struct searchNode *and_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *and_parse(searchCtx *ctx, int argc, char **argv) {
   searchNode *thenode, *subnode;
   struct and_localdata *localdata;
   int i;
@@ -48,7 +48,7 @@ struct searchNode *and_parse(searchCtx *ctx, int type, int argc, char **argv) {
   thenode->free         = and_free;
 
   for (i=0;i<argc;i++) {
-    subnode=ctx->parser(ctx, type, argv[i]); /* Propogate the search type */
+    subnode=ctx->parser(ctx, argv[i]); /* Propogate the search type */
     subnode=coerceNode(ctx, subnode, RETURNTYPE_BOOL); /* Needs to return BOOL */
     if (subnode) {
       localdata->nodes[localdata->count++] = subnode;