diff options
-rw-r--r-- | lib/table.c | 4 |
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) |