summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpaul <paul>2003-05-29 17:18:47 +0000
committerpaul <paul>2003-05-29 17:18:47 +0000
commit9bca8ebc4fcc369ad17b9a8caf8b14e62ad87e4a (patch)
tree68d520ef0c07c4f1413eda2935efb6b7e64c29fe /lib
parent0b24b4c759a6fb77c4b6043891b81574fbb229dc (diff)
lib/table.c: Fix the SET_LINK macro. (not that its of any worth)
Diffstat (limited to 'lib')
-rw-r--r--lib/table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/table.c b/lib/table.c
index 00ba58d9..281dfb64 100644
--- a/lib/table.c
+++ b/lib/table.c
@@ -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)