summaryrefslogtreecommitdiffstats
path: root/sys/net/if_stf.c
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2002-03-04 21:43:49 +0000
committerbrooks <brooks@FreeBSD.org>2002-03-04 21:43:49 +0000
commit50d3be4c82e6c70eac43734b67628e7a27fa3e24 (patch)
treee05372a98911db8a86433810b97039584862ca8d /sys/net/if_stf.c
parenta7336f1ad6c01a609997c0cb2bbebb2d3141cb99 (diff)
downloadFreeBSD-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_stf.c')
-rw-r--r--sys/net/if_stf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c
index 1b15c9b..ee14ece 100644
--- a/sys/net/if_stf.c
+++ b/sys/net/if_stf.c
@@ -163,7 +163,7 @@ static void stf_rtrequest __P((int, struct rtentry *, struct rt_addrinfo *));
static int stf_ioctl __P((struct ifnet *, u_long, caddr_t));
int stf_clone_create __P((struct if_clone *, int *));
-void stf_clone_destroy __P((struct ifnet *));
+int stf_clone_destroy __P((struct ifnet *));
struct if_clone stf_cloner =
IF_CLONE_INITIALIZER(STFNAME, stf_clone_create, stf_clone_destroy);
@@ -216,7 +216,7 @@ stf_clone_create(ifc, unit)
return (0);
}
-void
+int
stf_clone_destroy(ifp)
struct ifnet *ifp;
{
@@ -233,6 +233,7 @@ stf_clone_destroy(ifp)
KASSERT(err == 0, ("Unexpected error freeing resource"));
free(sc, M_STF);
+ return (0);
}
static int
OpenPOWER on IntegriCloud