diff options
author | Ondrej Filip <feela@network.cz> | 2004-06-23 21:34:26 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-06-23 21:34:26 +0000 |
commit | 3fe5f8990764b33cc0245317e90fbbcd0cde84de (patch) | |
tree | a762ee5520ca87ac2f5dc7d6db8b70aa971cba26 /proto/rip/rip.h | |
parent | 09e4117cc19dd94efbdad6edde9bc7d715a58a9a (diff) |
P->magic used just in LOCAL_DEBUG mode
Diffstat (limited to 'proto/rip/rip.h')
-rw-r--r-- | proto/rip/rip.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/proto/rip/rip.h b/proto/rip/rip.h index 30002ea3..e01a4bdb 100644 --- a/proto/rip/rip.h +++ b/proto/rip/rip.h @@ -146,13 +146,19 @@ struct rip_proto { struct fib rtable; list garbage; list interfaces; /* Interfaces we really know about */ +#ifdef LOCAL_DEBUG int magic; +#endif int tx_count; /* Do one regular update once in a while */ }; - +#ifdef LOCAL_DEBUG #define RIP_MAGIC 81861253 #define CHK_MAGIC do { if (P->magic != RIP_MAGIC) bug( "Not enough magic" ); } while (0) +#else +#define CHK_MAGIC do { } while (0) +#endif + void rip_init_instance(struct proto *p); void rip_init_config(struct rip_proto_config *c); |