summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/ldpd.c
diff options
context:
space:
mode:
authorMichele Marchetto <michele@cvs.openbsd.org>2009-07-13 19:04:27 +0000
committerMichele Marchetto <michele@cvs.openbsd.org>2009-07-13 19:04:27 +0000
commit235760e8a6bad73f886fa35937d889c8eb8d3518 (patch)
treeea2bc1ee28ef2fcd9678fa67f3121cdc41dac487 /usr.sbin/ldpd/ldpd.c
parentc303c681230d8a669faf29003fb3d3d685272a10 (diff)
Get rid of the multipath code, as it is not needed.
ok claudio@ laurent@
Diffstat (limited to 'usr.sbin/ldpd/ldpd.c')
-rw-r--r--usr.sbin/ldpd/ldpd.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/ldpd/ldpd.c b/usr.sbin/ldpd/ldpd.c
index 82526538057..dc8e4aa14c1 100644
--- a/usr.sbin/ldpd/ldpd.c
+++ b/usr.sbin/ldpd/ldpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldpd.c,v 1.2 2009/06/06 08:09:43 pyr Exp $ */
+/* $OpenBSD: ldpd.c,v 1.3 2009/07/13 19:04:26 michele Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -427,7 +427,7 @@ main_dispatch_lde(int fd, short event, void *bula)
struct imsgbuf *ibuf = &iev->ibuf;
struct imsg imsg;
ssize_t n;
- int count, shut = 0;
+ int shut = 0;
if (event & EV_READ) {
if ((n = imsg_read(ibuf)) == -1)
@@ -452,9 +452,7 @@ main_dispatch_lde(int fd, short event, void *bula)
kroute_insert_label(imsg.data);
break;
case IMSG_KLABEL_CHANGE:
- count = (imsg.hdr.len - IMSG_HEADER_SIZE) /
- sizeof(struct kroute);
- if (kr_change(imsg.data, count))
+ if (kr_change(imsg.data))
log_warn("main_dispatch_lde: error changing "
"route");
break;