diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-01-26 08:41:52 -0800 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-01-26 08:41:52 -0800 |
| commit | a0cee366e8837915e229fc2f14f72e6b4bccf777 (patch) | |
| tree | d7c0645872410b73c88c1fa1fc70a878d1e2c3c0 | |
| parent | 246556b504e8b6a1dcaad256675f8d97b0153fe2 (diff) | |
bgpd, ripngd, zebra: Remove duplicate PSIZE define
The PSIZE macro is defined the same in multiple places. Remove
the duplicates.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | bgpd/bgpd.h | 3 | ||||
| -rw-r--r-- | ripngd/ripngd.h | 3 | ||||
| -rw-r--r-- | zebra/zserv.h | 3 |
3 files changed, 0 insertions, 9 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h index 7af51f304c..d9716c5700 100644 --- a/bgpd/bgpd.h +++ b/bgpd/bgpd.h @@ -1033,9 +1033,6 @@ enum bgp_clear_type #define BGP_IS_VALID_STATE_FOR_NOTIF(S)\ (((S) == OpenSent) || ((S) == OpenConfirm) || ((S) == Established)) -/* Count prefix size from mask length */ -#define PSIZE(a) (((a) + 7) / (8)) - /* BGP error codes. */ #define BGP_SUCCESS 0 #define BGP_ERR_INVALID_VALUE -1 diff --git a/ripngd/ripngd.h b/ripngd/ripngd.h index 9a82d82288..fb0318d5cb 100644 --- a/ripngd/ripngd.h +++ b/ripngd/ripngd.h @@ -334,9 +334,6 @@ do { \ } \ } while (0) -/* Count prefix size from mask length */ -#define PSIZE(a) (((a) + 7) / (8)) - /* Extern variables. */ extern struct ripng *ripng; diff --git a/zebra/zserv.h b/zebra/zserv.h index 8e741a417e..0d23a6f61f 100644 --- a/zebra/zserv.h +++ b/zebra/zserv.h @@ -127,9 +127,6 @@ struct zebra_t struct meta_queue *mq; }; -/* Count prefix size from mask length */ -#define PSIZE(a) (((a) + 7) / (8)) - /* Prototypes. */ extern void zebra_init (void); extern void zebra_if_init (void); |
