diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2007-02-22 08:34:19 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2007-02-22 08:34:19 +0000 |
commit | b771cf9f9c1b4758ba2b249c62472fbe3442b39f (patch) | |
tree | cc7433c70b6f90fb622f6938efb26b6234ca85ea /usr.sbin/bgpd/rde_rib.c | |
parent | 95dc81ae9b9a9ff5088c08b567127f2211d0d58a (diff) |
KNF
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r-- | usr.sbin/bgpd/rde_rib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c index 66aba9fd620..36636b6a591 100644 --- a/usr.sbin/bgpd/rde_rib.c +++ b/usr.sbin/bgpd/rde_rib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_rib.c,v 1.92 2007/01/11 22:00:17 claudio Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.93 2007/02/22 08:34:18 henning Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -90,7 +90,6 @@ path_update(struct rde_peer *peer, struct rde_aspath *nasp, struct rde_aspath *asp; struct prefix *p, *oldp = NULL; - if (flags & F_LOCAL) { rde_send_pftable(nasp->pftableid, prefix, prefixlen, 0); rde_send_pftable_commit(); @@ -810,7 +809,7 @@ nexthop_shutdown(void) struct nexthop *nh, *nnh; for (i = 0; i <= nexthoptable.nexthop_hashmask; i++) { - for(nh = LIST_FIRST(&nexthoptable.nexthop_hashtbl[i]); + for (nh = LIST_FIRST(&nexthoptable.nexthop_hashtbl[i]); nh != NULL; nh = nnh) { nnh = LIST_NEXT(nh, nexthop_l); nh->state = NEXTHOP_UNREACH; |