]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-eq.c
SearchCtx should contain 'type' - this is to make life easier when defining new searc...
[irc/quakenet/newserv.git] / newsearch / ns-eq.c
index 3699bb39e3e63e39677b417479b815caa74a9622..99ee0842d198c55265193d45c036a7071d967d85 100644 (file)
@@ -17,7 +17,7 @@ struct eq_localdata {
 void eq_free(searchCtx *ctx, struct searchNode *thenode);
 void *eq_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 
-struct searchNode *eq_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *eq_parse(searchCtx *ctx, int argc, char **argv) {
   struct eq_localdata *localdata;
   struct searchNode *thenode;
   int i;
@@ -49,7 +49,7 @@ struct searchNode *eq_parse(searchCtx *ctx, int type, int argc, char **argv) {
   
   for (i=0;i<argc;i++) {
     /* Parse the node.. */
-    localdata->nodes[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)