]> git.proxmox.com Git - mirror_frr.git/commitdiff
2005-02-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Tue, 8 Feb 2005 15:57:25 +0000 (15:57 +0000)
committerajs <ajs>
Tue, 8 Feb 2005 15:57:25 +0000 (15:57 +0000)
* zebra.h: Change macro definitions SET_FLAG and UNSET_FLAG
  to use compound assignment operators (aesthetic change).

lib/ChangeLog
lib/zebra.h

index 432ec40dcf8501f438cecc60fea4f7faf0be2a9b..41308ff6c6b284490de33490d8564cb8c1f335b9 100644 (file)
@@ -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()
index 887ff7d63a174d289c35f886992dcde23819fe82..b952ee4f69ec8eaa0a061db0d5bce16a3db966c2 100644 (file)
@@ -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;