summaryrefslogtreecommitdiffstats
path: root/sys/net/if.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.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.c')
-rw-r--r--sys/net/if.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 98dd728..3cbf56d 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -636,8 +636,7 @@ if_clone_destroy(name)
if (ifc->ifc_destroy == NULL)
return (EOPNOTSUPP);
- (*ifc->ifc_destroy)(ifp);
- return (0);
+ return ((*ifc->ifc_destroy)(ifp));
}
/*
OpenPOWER on IntegriCloud