diff options
Diffstat (limited to 'ripd/rip_interface.c')
| -rw-r--r-- | ripd/rip_interface.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c index 364e23c5e6..bbac1a0a00 100644 --- a/ripd/rip_interface.c +++ b/ripd/rip_interface.c @@ -712,7 +712,7 @@ static int rip_enable_network_lookup_if(struct interface *ifp) for (ALL_LIST_ELEMENTS(ifp->connected, node, nnode, connected)) { struct prefix *p; - struct route_node *node; + struct route_node *n; p = connected->address; @@ -721,10 +721,10 @@ static int rip_enable_network_lookup_if(struct interface *ifp) address.prefix = p->u.prefix4; address.prefixlen = IPV4_MAX_BITLEN; - node = route_node_match(rip_enable_network, - (struct prefix *)&address); - if (node) { - route_unlock_node(node); + n = route_node_match(rip_enable_network, + (struct prefix *)&address); + if (n) { + route_unlock_node(n); return 1; } } @@ -865,7 +865,7 @@ static int rip_interface_wakeup(struct thread *t) /* Join to multicast group. */ if (rip_multicast_join(ifp, rip->sock) < 0) { - flog_err_sys(LIB_ERR_SOCKET, + flog_err_sys(EC_LIB_SOCKET, "multicast join failed, interface %s not running", ifp->name); return 0; |
