summaryrefslogtreecommitdiffstats
path: root/lib/zebra.h
diff options
context:
space:
mode:
authorajs <ajs>2005-02-08 15:57:25 +0000
committerajs <ajs>2005-02-08 15:57:25 +0000
commit141e3f4e7ac3c92dd0a0c747f41b87ced121dc14 (patch)
treefdc12727a674acc88c341d255c9543ba8ada75e0 /lib/zebra.h
parenta24d6b0007b5b08138e487a9dcd90fd812fe83c4 (diff)
downloadquagga-141e3f4e7ac3c92dd0a0c747f41b87ced121dc14.tar.bz2
quagga-141e3f4e7ac3c92dd0a0c747f41b87ced121dc14.tar.xz
2005-02-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* zebra.h: Change macro definitions SET_FLAG and UNSET_FLAG to use compound assignment operators (aesthetic change).
Diffstat (limited to 'lib/zebra.h')
-rw-r--r--lib/zebra.h4
1 files changed, 2 insertions, 2 deletions
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;