summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorajs <ajs>2005-02-08 15:57:25 +0000
committerajs <ajs>2005-02-08 15:57:25 +0000
commit548e6f7d58a08e28132936431bba75428412857f (patch)
tree4d168f4ea30a0fedc496ec158ac6fb58b2cd14cd /lib
parentba6454ec1fd1ca7266b10eba07d016becb22db74 (diff)
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')
-rw-r--r--lib/ChangeLog5
-rw-r--r--lib/zebra.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 432ec40d..41308ff6 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+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).
+
2005-02-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* log.c: (zlog_signal,zlog_backtrace_sigsafe) Eliminate use of fileno()
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;