diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-07-03 03:28:24 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-07-03 03:28:24 +0000 |
commit | f00117fe2f4765ffba3a980b0e9abe571a0666b2 (patch) | |
tree | faf68b781cc1b13ffcafae1efeabe19b7edac400 /sys/net/if_media.c | |
parent | 90532e6b67e3b97a85f953fa8b54a4eb1f2a1bfa (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.c | 4 |
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); } /* |