summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/kroute.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-25 02:50:02 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-25 02:50:02 +0000
commitf669bd7e8ba86a9f34f8fa03d4d2e532ebd58db4 (patch)
treed67c67ca16f420885a471c355a2044ff11d1a050 /usr.sbin/bgpd/kroute.c
parent7f2d1df6d971c82a7cec7a14bdd64ed128ad50bd (diff)
remove a useless check & comment
Diffstat (limited to 'usr.sbin/bgpd/kroute.c')
-rw-r--r--usr.sbin/bgpd/kroute.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index 5dba60e232d..e95387139a3 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.15 2003/12/25 02:49:05 henning Exp $ */
+/* $OpenBSD: kroute.c,v 1.16 2003/12/25 02:50:01 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -121,11 +121,8 @@ retry:
return (-1);
}
}
- if (n == sizeof(r))
- return (0);
- /* XXX we could not write everything... bad bad bad. cope. */
- return (n);
+ return (0);
}
int