summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2019-10-16 10:22:01 +0000
committermpi <mpi@openbsd.org>2019-10-16 10:22:01 +0000
commitbb293f58ef4370b96496689b27b2761a21b2e1bd (patch)
treea647982f4d1458dc61c7eb1fa22571e6f66b665e /sys/netinet
parenttsleep(9) -> tsleep_nsec(9) (diff)
downloadwireguard-openbsd-bb293f58ef4370b96496689b27b2761a21b2e1bd.tar.xz
wireguard-openbsd-bb293f58ef4370b96496689b27b2761a21b2e1bd.zip
tsleep(9) -> tsleep_nsec(9)
ok cheloha@, visa@
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/if_ether.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 8ae1dd1dd36..e23c94ab4c1 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ether.c,v 1.240 2019/07/17 16:46:18 mpi Exp $ */
+/* $OpenBSD: if_ether.c,v 1.241 2019/10/16 10:22:01 mpi Exp $ */
/* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */
/*
@@ -914,7 +914,8 @@ revarpwhoarewe(struct ifnet *ifp, struct in_addr *serv_in,
revarp_ifidx = ifp->if_index;
while (count--) {
revarprequest(ifp);
- result = tsleep((caddr_t)&revarp_myip, PSOCK, "revarp", hz/2);
+ result = tsleep_nsec(&revarp_myip, PSOCK, "revarp",
+ MSEC_TO_NSEC(500));
if (result != EWOULDBLOCK)
break;
}