]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-or.c
SearchCtx should contain 'type' - this is to make life easier when defining new searc...
[irc/quakenet/newserv.git] / newsearch / ns-or.c
index 6f0cbdf57bf9cb8654100eac29d645eaa2f07516..e2808b31002a59bc3bcc3bc24fde307a1197b768 100644 (file)
@@ -15,7 +15,7 @@ struct or_localdata {
   searchNode **nodes;
 };
 
-struct searchNode *or_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *or_parse(searchCtx *ctx, int argc, char **argv) {
   searchNode *thenode, *subnode;
   struct or_localdata *localdata;
   int i;
@@ -48,7 +48,7 @@ struct searchNode *or_parse(searchCtx *ctx, int type, int argc, char **argv) {
   thenode->free         = or_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); /* BOOL please */
     if (subnode) {
       localdata->nodes[localdata->count++] = subnode;