]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Changes identifiers to avoid use of reserved ones.
authorOndrej Zajicek <santiago@crfreenet.org>
Fri, 22 Nov 2013 20:59:43 +0000 (21:59 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 22 Nov 2013 20:59:43 +0000 (21:59 +0100)
lib/birdlib.h
proto/bfd/bfd.h
proto/bfd/io.h
proto/radv/config.Y

index b7a5a6a6352fcb48e9a53edb632e1cfaae4715a0..04fb7fedfe153e6b3fb2984932eb02b84c872244 100644 (file)
 
 /* Utility macros */
 
-#define _MIN(a,b) (((a)<(b))?(a):(b))
-#define _MAX(a,b) (((a)>(b))?(a):(b))
+#define MIN_(a,b) (((a)<(b))?(a):(b))
+#define MAX_(a,b) (((a)>(b))?(a):(b))
 
 #ifndef PARSER
 #undef MIN
 #undef MAX
-#define MIN(a,b) _MIN(a,b)
-#define MAX(a,b) _MAX(a,b)
+#define MIN(a,b) MIN_(a,b)
+#define MAX(a,b) MAX_(a,b)
 #endif
 
 #define ABS(a)   ((a)>=0 ? (a) : -(a))
 
 typedef s64 btime;
 
-#define _S     *1000000
-#define _MS    *1000
-#define _US    *1
+#define S_     *1000000
+#define MS_    *1000
+#define US_    *1
 #define TO_S   /1000000
 #define TO_MS  /1000
 #define TO_US  /1
 
 #ifndef PARSER
-#define S      _S
-#define MS     _MS
-#define US     _US
+#define S      S_
+#define MS     MS_
+#define US     US_
 #endif
 
 
index f4ab3fcceb56bc190135a1125dadf2d4e220bffa..9b61be64c74ca1e13c1e9211bf3e77d0bf8fdec6 100644 (file)
@@ -28,9 +28,9 @@
 #define BFD_ECHO_PORT          3785
 #define BFD_MULTI_CTL_PORT     4784
 
-#define BFD_DEFAULT_MIN_RX_INT (10 _MS)
-#define BFD_DEFAULT_MIN_TX_INT (100 _MS)
-#define BFD_DEFAULT_IDLE_TX_INT        (1 _S)
+#define BFD_DEFAULT_MIN_RX_INT (10 MS_)
+#define BFD_DEFAULT_MIN_TX_INT (100 MS_)
+#define BFD_DEFAULT_IDLE_TX_INT        (1 S_)
 #define BFD_DEFAULT_MULTIPLIER 5
 
 
index 3f166a47f375eec5f124d8ca2d0019b2d6241b96..641ee054227d3906443cf52bccf4c82778598007 100644 (file)
@@ -75,7 +75,7 @@ static inline void
 tm2_start_max(timer2 *t, btime after)
 {
   btime rem = tm2_remains(t);
-  tm2_start(t, _MAX(rem, after));
+  tm2_start(t, MAX_(rem, after));
 }
 */
 
index c5b7aaee4358e195e7a6af6cae24d4e3d6cfebfb..ff70a2f7ffc3272c76376aa080e032fb9fc6a971 100644 (file)
@@ -113,7 +113,7 @@ radv_iface_finish:
   struct radv_iface_config *ic = RADV_IFACE;
 
   if (ic->min_ra_int == (u32) -1)
-    ic->min_ra_int = _MAX(ic->max_ra_int / 3, 3);
+    ic->min_ra_int = MAX_(ic->max_ra_int / 3, 3);
 
   if (ic->default_lifetime == (u32) -1)
     ic->default_lifetime = 3 * ic->max_ra_int;