summaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2017-11-09 09:07:02 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2017-11-09 09:07:02 +0000
commit24109762c0ab923a27782ac78c24553e0c00b1dc (patch)
treef5a89f78ef509d5b5cd45e56bb871ebd305732d3 /sys/net/if.c
parente746c28adf2d08ae141cf5c58122e1346a0893d3 (diff)
The cmd argument of ifconf() has been unused since COMPAT_LINUX was
purged. Remove it and move the prototype to if.c since ifconf() is not used outside of this file. ok mpi
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index a7de98a4dda..626a7922a12 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.523 2017/11/04 16:58:46 tb Exp $ */
+/* $OpenBSD: if.c,v 1.524 2017/11/09 09:07:01 tb Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -139,6 +139,7 @@ void if_detached_qstart(struct ifqueue *);
int if_detached_ioctl(struct ifnet *, u_long, caddr_t);
int ifioctl_get(u_long, caddr_t);
+int ifconf(caddr_t);
int if_getgroup(caddr_t, struct ifnet *);
int if_getgroupmembers(caddr_t);
@@ -2108,7 +2109,7 @@ ifioctl_get(u_long cmd, caddr_t data)
switch(cmd) {
case SIOCGIFCONF:
- return (ifconf(cmd, data));
+ return (ifconf(data));
case SIOCIFGCLONERS:
return (if_clone_list((struct if_clonereq *)data));
case SIOCGIFGMEMB:
@@ -2197,7 +2198,7 @@ ifioctl_get(u_long cmd, caddr_t data)
* other information.
*/
int
-ifconf(u_long cmd, caddr_t data)
+ifconf(caddr_t data)
{
struct ifconf *ifc = (struct ifconf *)data;
struct ifnet *ifp;