diff options
author | Pavel Machek <pavel@ucw.cz> | 1999-04-10 11:45:08 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 1999-04-10 11:45:08 +0200 |
commit | 2db3b2887ea93c9946956a9a5ce5a06f0ef783c3 (patch) | |
tree | 230d0260a17b3b4b758bfa392f4b6fbcc8a2b921 /filter/filter.h | |
parent | 49ed70b48e3b66c4dd71315e842733d69204698e (diff) | |
download | bird-2db3b2887ea93c9946956a9a5ce5a06f0ef783c3.tar bird-2db3b2887ea93c9946956a9a5ce5a06f0ef783c3.zip |
Decrease number of warnings.
Diffstat (limited to 'filter/filter.h')
-rw-r--r-- | filter/filter.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/filter/filter.h b/filter/filter.h index 1294342..ffb50b3 100644 --- a/filter/filter.h +++ b/filter/filter.h @@ -15,9 +15,19 @@ struct f_inst { /* Instruction */ struct f_inst *next; /* Structure is 16 bytes, anyway */ int code; - void *arg1, *arg2; + union { + int i; + void *p; + } a1; + union { + int i; + void *p; + } a2; }; +#define arg1 a1.p +#define arg2 a2.p + struct prefix { ip_addr ip; int len; @@ -27,7 +37,8 @@ struct f_val { int type; union { int i; - struct prefix *px; + ip_addr ip; + struct prefix px; char *s; } val; }; |