From 548e6f7d58a08e28132936431bba75428412857f Mon Sep 17 00:00:00 2001 From: ajs Date: Tue, 8 Feb 2005 15:57:25 +0000 Subject: 2005-02-08 Andrew J. Schorr * zebra.h: Change macro definitions SET_FLAG and UNSET_FLAG to use compound assignment operators (aesthetic change). --- lib/zebra.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/zebra.h') diff --git a/lib/zebra.h b/lib/zebra.h index 887ff7d6..b952ee4f 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -444,8 +444,8 @@ struct in_pktinfo /* Flag manipulation macros. */ #define CHECK_FLAG(V,F) ((V) & (F)) -#define SET_FLAG(V,F) (V) = (V) | (F) -#define UNSET_FLAG(V,F) (V) = (V) & ~(F) +#define SET_FLAG(V,F) (V) |= (F) +#define UNSET_FLAG(V,F) (V) &= ~(F) /* AFI and SAFI type. */ typedef u_int16_t afi_t; -- cgit v1.2.1