summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/kroute.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd/kroute.c')
-rw-r--r--usr.sbin/bgpd/kroute.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index 652176e7edf..420c15c8867 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.92 2004/03/10 13:00:42 henning Exp $ */
+/* $OpenBSD: kroute.c,v 1.93 2004/04/27 04:38:12 deraadt Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -922,7 +922,6 @@ send_rtmsg(int fd, int action, struct kroute *kroute)
struct sockaddr_in nexthop;
struct sockaddr_in mask;
} r;
- ssize_t n;
if (kr_state.fib_sync == 0)
return (0);
@@ -945,7 +944,7 @@ send_rtmsg(int fd, int action, struct kroute *kroute)
r.mask.sin_addr.s_addr = htonl(0xffffffff << (32 - kroute->prefixlen));
retry:
- if ((n = write(fd, &r, sizeof(r))) == -1) {
+ if (write(fd, &r, sizeof(r)) == -1) { /* XXX never partial? */
switch (errno) {
case ESRCH:
if (r.hdr.rtm_type == RTM_CHANGE) {