summaryrefslogtreecommitdiff
path: root/usr.sbin/ripd/rde.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-10-18 17:01:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-10-18 17:01:00 +0000
commitb190e65fd18284efd3361cee55aba4d8d04d55a4 (patch)
treed57e1ce0d5915b4910c41f4cdcdfa791a4179349 /usr.sbin/ripd/rde.c
parentae647d82e4b6735021bcb2964503fb3fb2c76985 (diff)
spacing
Diffstat (limited to 'usr.sbin/ripd/rde.c')
-rw-r--r--usr.sbin/ripd/rde.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/ripd/rde.c b/usr.sbin/ripd/rde.c
index 408bc97731e..b7152bf7ec1 100644
--- a/usr.sbin/ripd/rde.c
+++ b/usr.sbin/ripd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.6 2007/04/09 20:45:52 michele Exp $ */
+/* $OpenBSD: rde.c,v 1.7 2007/10/18 17:00:59 deraadt Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -221,8 +221,9 @@ rde_dispatch_imsg(int fd, short event, void *bula)
break;
case IMSG_FULL_REQUEST:
bzero(&rr, sizeof(rr));
- /* AFI == 0 && metric == INFINITY request the
- whole routing table
+ /*
+ * AFI == 0 && metric == INFINITY request the
+ * whole routing table
*/
rr.metric = INFINITY;
rde_imsg_compose_ripe(IMSG_REQUEST_ADD, 0,
@@ -351,7 +352,7 @@ rde_dispatch_parent(int fd, short event, void *bula)
void
rde_send_change_kroute(struct rt_node *r)
{
- struct kroute kr;
+ struct kroute kr;
bzero(&kr, sizeof(kr));
kr.prefix.s_addr = r->prefix.s_addr;
@@ -367,7 +368,7 @@ rde_send_change_kroute(struct rt_node *r)
void
rde_send_delete_kroute(struct rt_node *r)
{
- struct kroute kr;
+ struct kroute kr;
bzero(&kr, sizeof(kr));
kr.prefix.s_addr = r->prefix.s_addr;
@@ -425,7 +426,7 @@ rde_check_route(struct rip_route *e)
rde_send_change_kroute(rn);
triggered_update(rn);
} else if (e->nexthop.s_addr == rn->nexthop.s_addr &&
- metric > rn->metric) {
+ metric > rn->metric) {
rn->metric = metric;
rde_send_change_kroute(rn);
triggered_update(rn);