summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospfe.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-12-15 20:29:07 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-12-15 20:29:07 +0000
commitd24b45b2a3b07426e88b816f67726f78730c755a (patch)
tree8e7497a68a0e4b33168644db2823baee7f506309 /usr.sbin/ospfd/ospfe.h
parent2c20c42db624528a8761a4f1cf52ee08d7f6f1c7 (diff)
Simpify iface_del() and nbr_del(). make them void funtions as they can not fail
and do not remove a element twice in iface_del(). OK norby@
Diffstat (limited to 'usr.sbin/ospfd/ospfe.h')
-rw-r--r--usr.sbin/ospfd/ospfe.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ospfd/ospfe.h b/usr.sbin/ospfd/ospfe.h
index 58d9842e99b..436cab69fbd 100644
--- a/usr.sbin/ospfd/ospfe.h
+++ b/usr.sbin/ospfd/ospfe.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfe.h,v 1.18 2005/12/04 20:49:47 norby Exp $ */
+/* $OpenBSD: ospfe.h,v 1.19 2005/12/15 20:29:06 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -183,7 +183,7 @@ void orig_net_lsa(struct iface *);
int if_fsm(struct iface *, enum iface_event);
struct iface *if_new(struct kif *);
-int if_del(struct iface *);
+void if_del(struct iface *);
void if_init(struct ospfd_conf *, struct iface *);
int if_act_start(struct iface *);
@@ -254,7 +254,7 @@ void lsa_cache_put(struct lsa_ref *, struct nbr *);
/* neighbor.c */
void nbr_init(u_int32_t);
struct nbr *nbr_new(u_int32_t, struct iface *, int);
-int nbr_del(struct nbr *);
+void nbr_del(struct nbr *);
struct nbr *nbr_find_id(struct iface *, u_int32_t);
struct nbr *nbr_find_peerid(u_int32_t);