summaryrefslogtreecommitdiffstats
path: root/filter/filter.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-15 12:53:56 +0200
committerMartin Mares <mj@ucw.cz>2000-05-15 12:53:56 +0200
commit3b1c523d79763b22e0fe06862ff349fd94e816b1 (patch)
treeed28d1bc45fb08916ba0478acd3daac4a0c42cc0 /filter/filter.c
parent1c20608e02109ef0839e0168d100c75f0cc65fd9 (diff)
downloadbird-3b1c523d79763b22e0fe06862ff349fd94e816b1.tar
bird-3b1c523d79763b22e0fe06862ff349fd94e816b1.zip
Got rid of startup functions and filters_postconfig().
By the way, how do you expect pointers to fit in an int?
Diffstat (limited to 'filter/filter.c')
-rw-r--r--filter/filter.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/filter/filter.c b/filter/filter.c
index 2510b6a..c9350c9 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -43,8 +43,6 @@
#define P(a,b) ((a<<8) | b)
-struct f_inst *startup_func = NULL, *test1_func, *test2_func;
-
#define CMP_ERROR 999
static int
@@ -682,25 +680,6 @@ f_eval_int(struct f_inst *expr)
return res.val.i;
}
-void
-filters_postconfig(void)
-{
- struct f_val res;
-
-#if 1
- if (!i_same(test1_func, test2_func))
- bug("i_same does not work");
-#endif
- if (startup_func) {
- debug( "Launching startup function...\n" );
- f_pool = lp_new(&root_pool, 1024);
- res = interpret(startup_func);
- if (res.type == F_ERROR)
- die( "Startup function resulted in error." );
- debug( "done\n" );
- }
-}
-
/**
* filter_same - compare two filters
* @new: first filter to be compared