summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2006-05-27 23:59:07 +0000
committerjason <jason@openbsd.org>2006-05-27 23:59:07 +0000
commit31760c3b389b40643ef1ad59c2cca4e23bfe54a2 (patch)
tree95dacddb89509ee4a6df810dfdd7b44b0ec9d850
parentMake sensor add/remove create hotplug events (after much prodding from henning). Idea from mbalmer. 'in it goes!' deraadt. (diff)
downloadwireguard-openbsd-31760c3b389b40643ef1ad59c2cca4e23bfe54a2.tar.xz
wireguard-openbsd-31760c3b389b40643ef1ad59c2cca4e23bfe54a2.zip
unknown ioctl is ENOTTY not EINVAL
-rw-r--r--sys/arch/sparc/dev/be.c4
-rw-r--r--sys/arch/sparc/dev/hme.c4
-rw-r--r--sys/arch/sparc/dev/if_ie.c4
-rw-r--r--sys/arch/sparc/dev/qe.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/sparc/dev/be.c b/sys/arch/sparc/dev/be.c
index 11837d898f1..50a5126a552 100644
--- a/sys/arch/sparc/dev/be.c
+++ b/sys/arch/sparc/dev/be.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: be.c,v 1.39 2006/03/25 22:41:41 djm Exp $ */
+/* $OpenBSD: be.c,v 1.40 2006/05/27 23:59:07 jason Exp $ */
/*
* Copyright (c) 1998 Theo de Raadt and Jason L. Wright.
@@ -640,7 +640,7 @@ beioctl(ifp, cmd, data)
splx(s);
return error;
}
- error = EINVAL;
+ error = ENOTTY;
break;
}
splx(s);
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c
index bde14564916..559f66e6c50 100644
--- a/sys/arch/sparc/dev/hme.c
+++ b/sys/arch/sparc/dev/hme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hme.c,v 1.52 2006/03/25 22:41:41 djm Exp $ */
+/* $OpenBSD: hme.c,v 1.53 2006/05/27 23:59:07 jason Exp $ */
/*
* Copyright (c) 1998 Jason L. Wright (jason@thought.net)
@@ -468,7 +468,7 @@ hmeioctl(ifp, cmd, data)
error = ifmedia_ioctl(ifp, ifr, &sc->sc_mii.mii_media, cmd);
break;
default:
- error = EINVAL;
+ error = ENOTTY;
}
sc->sc_if_flags = ifp->if_flags;
diff --git a/sys/arch/sparc/dev/if_ie.c b/sys/arch/sparc/dev/if_ie.c
index b0472a0cde1..68b77ebd3da 100644
--- a/sys/arch/sparc/dev/if_ie.c
+++ b/sys/arch/sparc/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.35 2006/04/16 00:46:32 pascoe Exp $ */
+/* $OpenBSD: if_ie.c,v 1.36 2006/05/27 23:59:07 jason Exp $ */
/* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */
/*-
@@ -2012,7 +2012,7 @@ ieioctl(ifp, cmd, data)
break;
default:
- error = EINVAL;
+ error = ENOTTY;
}
splx(s);
return error;
diff --git a/sys/arch/sparc/dev/qe.c b/sys/arch/sparc/dev/qe.c
index 1dd81f668cb..f3599a03a7c 100644
--- a/sys/arch/sparc/dev/qe.c
+++ b/sys/arch/sparc/dev/qe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qe.c,v 1.29 2006/03/25 22:41:41 djm Exp $ */
+/* $OpenBSD: qe.c,v 1.30 2006/05/27 23:59:07 jason Exp $ */
/*
* Copyright (c) 1998, 2000 Jason L. Wright.
@@ -659,7 +659,7 @@ qeioctl(ifp, cmd, data)
splx(s);
return (error);
}
- error = EINVAL;
+ error = ENOTTY;
break;
}
splx(s);