diff options
author | brooks <brooks@FreeBSD.org> | 2002-03-04 21:43:49 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2002-03-04 21:43:49 +0000 |
commit | 50d3be4c82e6c70eac43734b67628e7a27fa3e24 (patch) | |
tree | e05372a98911db8a86433810b97039584862ca8d /sys/net/if_faith.c | |
parent | a7336f1ad6c01a609997c0cb2bbebb2d3141cb99 (diff) | |
download | FreeBSD-src-50d3be4c82e6c70eac43734b67628e7a27fa3e24.zip FreeBSD-src-50d3be4c82e6c70eac43734b67628e7a27fa3e24.tar.gz |
Change the network interface cloning API so the destroy function returns
an int errorcode instead of void in preperation for merging cloning of
the loopback device.
Submitted by: mux
MFC after: 2 weeks
Diffstat (limited to 'sys/net/if_faith.c')
-rw-r--r-- | sys/net/if_faith.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_faith.c b/sys/net/if_faith.c index 4b30ba0..dc071eb 100644 --- a/sys/net/if_faith.c +++ b/sys/net/if_faith.c @@ -108,7 +108,7 @@ static struct rman faithunits[1]; static LIST_HEAD(, faith_softc) faith_softc_list; int faith_clone_create __P((struct if_clone *, int *)); -void faith_clone_destroy __P((struct ifnet *)); +int faith_clone_destroy __P((struct ifnet *)); struct if_clone faith_cloner = IF_CLONE_INITIALIZER(FAITHNAME, faith_clone_create, faith_clone_destroy); @@ -221,7 +221,7 @@ faith_clone_create(ifc, unit) return (0); } -void +int faith_clone_destroy(ifp) struct ifnet *ifp; { @@ -236,6 +236,7 @@ faith_clone_destroy(ifp) KASSERT(err == 0, ("Unexpected error freeing resource")); free(sc, M_FAITH); + return (0); } int |