]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-gt.c
SearchCtx should contain 'type' - this is to make life easier when defining new searc...
[irc/quakenet/newserv.git] / newsearch / ns-gt.c
index 2e987adafbbba34107ff0d4eddf5409af2cfe82c..545e9fdc5e6262f10dd7169045ab9cd24569c7f4 100644 (file)
@@ -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;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)