summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfd/interface.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2005-10-18 15:40:36 +0000
committerclaudio <claudio@openbsd.org>2005-10-18 15:40:36 +0000
commit674cacad06ed25663fbfa9cb36c31699f7c75476 (patch)
tree315fbe5af45c6b5770fa6613a36b82713967f999 /usr.sbin/ospfd/interface.c
parentBetter warning for non equal MTU in the database phase. Instead of just (diff)
downloadwireguard-openbsd-674cacad06ed25663fbfa9cb36c31699f7c75476.tar.xz
wireguard-openbsd-674cacad06ed25663fbfa9cb36c31699f7c75476.zip
Cleanup interface code a minimal bit. There is no need for if_shutdown(),
especially it got called in the wrong place. OK norby@
Diffstat (limited to 'usr.sbin/ospfd/interface.c')
-rw-r--r--usr.sbin/ospfd/interface.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.sbin/ospfd/interface.c b/usr.sbin/ospfd/interface.c
index 9c021077fc8..cc3b24860c9 100644
--- a/usr.sbin/ospfd/interface.c
+++ b/usr.sbin/ospfd/interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.c,v 1.36 2005/10/12 09:25:57 claudio Exp $ */
+/* $OpenBSD: interface.c,v 1.37 2005/10/18 15:40:36 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -266,16 +266,6 @@ if_init(struct ospfd_conf *xconf, struct iface *iface)
iface->fd = xconf->ospf_socket;
}
-int
-if_shutdown(struct ospfd_conf *xconf)
-{
- int ret = 0;
-
- ret = close(xconf->ospf_socket);
-
- return (ret);
-}
-
/* timers */
void
if_hello_timer(int fd, short event, void *arg)