]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd, ripngd, zebra: Remove duplicate PSIZE define
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 26 Jan 2016 16:41:52 +0000 (08:41 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 26 Jan 2016 16:41:52 +0000 (08:41 -0800)
The PSIZE macro is defined the same in multiple places.  Remove
the duplicates.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgpd.h
ripngd/ripngd.h
zebra/zserv.h

index 7af51f304c5655fe0e230c467d9673d363741239..d9716c57000477351838bca90dae424098c985f3 100644 (file)
@@ -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
index 9a82d82288a6038ca53fcd4da5516e61cd845b50..fb0318d5cbca045fc6b2708e40884437e94fd5f3 100644 (file)
@@ -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;
 
index 8e741a417ed158e2646776b289d1cdfdc4799c6f..0d23a6f61fa407049aacf64fc716c64584d02c74 100644 (file)
@@ -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);