summaryrefslogtreecommitdiff
path: root/sys/net/if_media.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-07-03 03:28:24 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-07-03 03:28:24 +0000
commitf00117fe2f4765ffba3a980b0e9abe571a0666b2 (patch)
treefaf68b781cc1b13ffcafae1efeabe19b7edac400 /sys/net/if_media.c
parent90532e6b67e3b97a85f953fa8b54a4eb1f2a1bfa (diff)
rev 1.13
when changing to an unsupported media type, return EINVAL instead of ENXIO. From NetBSD
Diffstat (limited to 'sys/net/if_media.c')
-rw-r--r--sys/net/if_media.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_media.c b/sys/net/if_media.c
index 1897f195ccc..31e0fb63bf8 100644
--- a/sys/net/if_media.c
+++ b/sys/net/if_media.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_media.c,v 1.12 2005/02/20 01:19:17 brad Exp $ */
+/* $OpenBSD: if_media.c,v 1.13 2005/07/03 03:28:23 brad Exp $ */
/* $NetBSD: if_media.c,v 1.10 2000/03/13 23:52:39 soren Exp $ */
/*-
@@ -269,7 +269,7 @@ ifmedia_ioctl(ifp, ifr, ifm, cmd)
newmedia);
}
#endif
- return (ENXIO);
+ return (EINVAL);
}
/*