From a0cee366e8837915e229fc2f14f72e6b4bccf777 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 26 Jan 2016 08:41:52 -0800 Subject: [PATCH] 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 --- bgpd/bgpd.h | 3 --- ripngd/ripngd.h | 3 --- zebra/zserv.h | 3 --- 3 files changed, 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); -- 2.39.5