]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib/table.c: Fix the SET_LINK macro. (not that its of any worth)
authorpaul <paul>
Thu, 29 May 2003 17:18:47 +0000 (17:18 +0000)
committerpaul <paul>
Thu, 29 May 2003 17:18:47 +0000 (17:18 +0000)
lib/table.c

index 00ba58d95363f92cfac147113d5c81066a297a13..281dfb642cc698026b5adfd5516865b0f8762684 100644 (file)
@@ -185,8 +185,8 @@ check_bit (u_char *prefix, u_char prefixlen)
 }
 
 /* Macro version of set_link (). */
-#define SET_LINK(X,Y) (X)->link[CHECK_BIT(&(Y)->prefix,(X)->prefixlen)] = (Y);\
-                      (Y)->parent = (X)
+#define SET_LINK(X,Y) do { (X)->link[CHECK_BIT(&(Y)->p.u.prefix,(X)->p.prefixlen)] = (Y);\
+                      (Y)->parent = (X); } while (0)
 
 static void
 set_link (struct route_node *node, struct route_node *new)