]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-length.c
SearchCtx should contain 'type' - this is to make life easier when defining new searc...
[irc/quakenet/newserv.git] / newsearch / ns-length.c
index 0f41643fc5e10f95285134e9003a79a7d93798ef..9bb0da7cfa88d9bfde8531d6113acc6dc23d781c 100644 (file)
@@ -12,7 +12,7 @@
 void length_free(searchCtx *ctx, struct searchNode *thenode);
 void *length_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 
-struct searchNode *length_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *length_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode, *childnode;
 
   if (!(thenode = (struct searchNode *)malloc(sizeof(struct searchNode)))) {
@@ -31,7 +31,7 @@ struct searchNode *length_parse(searchCtx *ctx, int type, int argc, char **argv)
     return NULL;
   }
 
-  childnode = ctx->parser(ctx, type, argv[0]);
+  childnode = ctx->parser(ctx, argv[0]);
   if (!(thenode->localdata = coerceNode(ctx, childnode, RETURNTYPE_STRING))) {
     length_free(ctx, thenode);
     return NULL;