diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-10-30 10:04:08 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-10-30 10:04:08 +0000 |
commit | 62fd7e3bf993873cae5e063912722592b6b150d9 (patch) | |
tree | 1d43c88db1f4d2558f4385df1c09403043236379 | |
parent | 1ee107e1e8c7b4b5f6b49fa73f94aa323b76cab8 (diff) |
Exit printing an error message if SIOCSIFMEDIA fails.
from Jesper Wallin.
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 0d2bedbabe2..22db57d4ec2 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.348 2017/08/29 21:10:20 deraadt Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.349 2017/10/30 10:04:07 mpi Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -2449,7 +2449,7 @@ process_media_commands(void) ifr.ifr_media = media_current; if (ioctl(s, SIOCSIFMEDIA, (caddr_t)&ifr) < 0) - ; + err(1, "SIOCSIFMEDIA"); } /* ARGSUSED */ |