summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_vr.c
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2006-05-28 00:04:24 +0000
committerjason <jason@openbsd.org>2006-05-28 00:04:24 +0000
commitb0b3f090d4cae8d7b79d70ee996782473e5572db (patch)
tree454496cc82def973ea6e6ae0500318597beda3ce /sys/dev/pci/if_vr.c
parentunknown ioctl is ENOTTY not EINVAL (diff)
downloadwireguard-openbsd-b0b3f090d4cae8d7b79d70ee996782473e5572db.tar.xz
wireguard-openbsd-b0b3f090d4cae8d7b79d70ee996782473e5572db.zip
unknown ioctl is ENOTTY not EINVAL
Diffstat (limited to 'sys/dev/pci/if_vr.c')
-rw-r--r--sys/dev/pci/if_vr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c
index 70973f8c283..a72d939147a 100644
--- a/sys/dev/pci/if_vr.c
+++ b/sys/dev/pci/if_vr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vr.c,v 1.62 2006/04/28 06:32:31 brad Exp $ */
+/* $OpenBSD: if_vr.c,v 1.63 2006/05/28 00:04:24 jason Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -1578,7 +1578,7 @@ vr_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
error = ifmedia_ioctl(ifp, ifr, &sc->sc_mii.mii_media, command);
break;
default:
- error = EINVAL;
+ error = ENOTTY;
break;
}