diff options
author | Pavel Machek <pavel@ucw.cz> | 2000-04-12 14:02:04 +0000 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2000-04-12 14:02:04 +0000 |
commit | ac7a2145ccd5cfc54788b0218cc253e3b1721b76 (patch) | |
tree | 028014e8aa185e86c5b5c242aed0623830d1c2bf /filter | |
parent | 12d5677aa3e6217edc7d5508ac3dbbf87edc8624 (diff) |
f_new_dynamic_attr gets third argument, type as filters know it.
Diffstat (limited to 'filter')
-rw-r--r-- | filter/f-util.c | 4 | ||||
-rw-r--r-- | filter/filter.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/filter/f-util.c b/filter/f-util.c index 048dd29f..2ffcd9f6 100644 --- a/filter/f-util.c +++ b/filter/f-util.c @@ -21,10 +21,10 @@ f_new_inst(void) } struct f_inst * -f_new_dynamic_attr(int type, int code) +f_new_dynamic_attr(int type, int f_type, int code) { struct f_inst *f = f_new_inst(); - f->aux = T_PATH; /* type; HACK!!! */ + f->aux = f_type; f->a2.i = code; return f; } diff --git a/filter/filter.h b/filter/filter.h index 45f9cd6c..cac124a4 100644 --- a/filter/filter.h +++ b/filter/filter.h @@ -64,7 +64,7 @@ struct filter { void filters_postconfig(void); struct f_inst *f_new_inst(void); -struct f_inst *f_new_dynamic_attr(int type, int code); +struct f_inst *f_new_dynamic_attr(int type, int f_type, int code); /* Type as core knows it, type as filters know it, and code */ struct f_tree *f_new_tree(void); struct f_tree *build_tree(struct f_tree *); |