diff options
author | 2017-10-31 17:59:30 +0000 | |
---|---|---|
committer | 2017-10-31 17:59:30 +0000 | |
commit | bc8e66f57d977f784d33e0f51397f0398eb32fda (patch) | |
tree | 334e4d4ed8ea5e9341a211600c832c9f7e2b901b | |
parent | Make -zdefs and --no-undefined no-ops for now, to unblock ports devs at p2k17. (diff) | |
download | wireguard-openbsd-bc8e66f57d977f784d33e0f51397f0398eb32fda.tar.xz wireguard-openbsd-bc8e66f57d977f784d33e0f51397f0398eb32fda.zip |
Replace usage of WSMUX_{ADD,REMOVE}_DEVICE compat macros.
ok deraadt@, mpi@
-rw-r--r-- | usr.sbin/wsconscfg/wsconscfg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/wsconscfg/wsconscfg.c b/usr.sbin/wsconscfg/wsconscfg.c index 280e71287f8..3096043d9f1 100644 --- a/usr.sbin/wsconscfg/wsconscfg.c +++ b/usr.sbin/wsconscfg/wsconscfg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsconscfg.c,v 1.15 2017/08/23 09:15:33 fcambus Exp $ */ +/* $OpenBSD: wsconscfg.c,v 1.16 2017/10/31 17:59:30 anton Exp $ */ /* $NetBSD: wsconscfg.c,v 1.4 1999/07/29 18:24:10 augustss Exp $ */ /* @@ -125,13 +125,13 @@ main(int argc, char *argv[]) wmd.type = WSMUX_KBD; wmd.idx = idx; if (delete) { - res = ioctl(wsfd, WSMUX_REMOVE_DEVICE, &wmd); + res = ioctl(wsfd, WSMUXIO_REMOVE_DEVICE, &wmd); if (res < 0) - err(3, "WSMUX_REMOVE_DEVICE"); + err(3, "WSMUXIO_REMOVE_DEVICE"); } else { - res = ioctl(wsfd, WSMUX_ADD_DEVICE, &wmd); + res = ioctl(wsfd, WSMUXIO_ADD_DEVICE, &wmd); if (res < 0) - err(3, "WSMUX_ADD_DEVICE"); + err(3, "WSMUXIO_ADD_DEVICE"); } } else if (delete) { dsd.idx = idx; |