summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMichele Marchetto <michele@cvs.openbsd.org>2010-02-25 21:07:32 +0000
committerMichele Marchetto <michele@cvs.openbsd.org>2010-02-25 21:07:32 +0000
commitb5f10d654c9518405cddf0171c01943bdecd9576 (patch)
tree1e7a5168b601b787fa5ea3631b9e9464b5e39f8d /usr.sbin
parent47852f108d84985e1696e38f67c1ff799bd5fa09 (diff)
Whitespaces cleanup.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ldpd/control.c4
-rw-r--r--usr.sbin/ldpd/lde_lib.c32
2 files changed, 18 insertions, 18 deletions
diff --git a/usr.sbin/ldpd/control.c b/usr.sbin/ldpd/control.c
index fb2281f841e..0bffb106132 100644
--- a/usr.sbin/ldpd/control.c
+++ b/usr.sbin/ldpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.6 2010/02/21 20:53:20 michele Exp $ */
+/* $OpenBSD: control.c,v 1.7 2010/02/25 21:07:31 michele Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -266,7 +266,7 @@ control_dispatch_imsg(int fd, short event, void *bula)
memcpy(&verbose, imsg.data, sizeof(verbose));
log_verbose(verbose);
- break;
+ break;
default:
log_debug("control_dispatch_imsg: "
"error handling imsg %d", imsg.hdr.type);
diff --git a/usr.sbin/ldpd/lde_lib.c b/usr.sbin/ldpd/lde_lib.c
index 37792306ad9..2369297395b 100644
--- a/usr.sbin/ldpd/lde_lib.c
+++ b/usr.sbin/ldpd/lde_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lde_lib.c,v 1.11 2010/02/25 21:02:46 michele Exp $ */
+/* $OpenBSD: lde_lib.c,v 1.12 2010/02/25 21:07:31 michele Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -258,28 +258,28 @@ lde_kernel_insert(struct kroute *kr)
/* Redistribute the current mapping to every nbr */
localmap.label = (ntohl(rn->local_label) & MPLS_LABEL_MASK) >>
- MPLS_LABEL_OFFSET;
+ MPLS_LABEL_OFFSET;
localmap.prefix = rn->prefix.s_addr;
localmap.prefixlen = rn->prefixlen;
LIST_FOREACH(iface, &ldeconf->iface_list, entry) {
- LIST_FOREACH(ln, &iface->lde_nbr_list, entry) {
- if (ln->self)
- continue;
+ LIST_FOREACH(ln, &iface->lde_nbr_list, entry) {
+ if (ln->self)
+ continue;
- if (ldeconf->mode & MODE_ADV_UNSOLICITED &&
- ldeconf->mode & MODE_DIST_INDEPENDENT)
- lde_send_labelmapping(ln->peerid, &localmap);
+ if (ldeconf->mode & MODE_ADV_UNSOLICITED &&
+ ldeconf->mode & MODE_DIST_INDEPENDENT)
+ lde_send_labelmapping(ln->peerid, &localmap);
- if (ldeconf->mode & MODE_ADV_UNSOLICITED &&
- ldeconf->mode & MODE_DIST_ORDERED) {
+ if (ldeconf->mode & MODE_ADV_UNSOLICITED &&
+ ldeconf->mode & MODE_DIST_ORDERED) {
/* XXX */
- if (rn->nexthop.s_addr == INADDR_ANY ||
- rn->remote_label != 0)
- lde_send_labelmapping(ln->peerid,
- &localmap);
- }
- }
+ if (rn->nexthop.s_addr == INADDR_ANY ||
+ rn->remote_label != 0)
+ lde_send_labelmapping(ln->peerid,
+ &localmap);
+ }
+ }
}
}