summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2016-09-20 17:25:06 +0000
committerotto <otto@openbsd.org>2016-09-20 17:25:06 +0000
commit04e62e6e0a2e1a9ab86abf920a37067c05e53e14 (patch)
tree0eaaac2b40c474b4b9866ddb20ea22c419d36be4
parentdon't depend on /dev/tty, in bluhm's framework there is no such thing (diff)
downloadwireguard-openbsd-04e62e6e0a2e1a9ab86abf920a37067c05e53e14.tar.xz
wireguard-openbsd-04e62e6e0a2e1a9ab86abf920a37067c05e53e14.zip
switch master & slave; prompted by bluhm@
-rw-r--r--regress/lib/libpthread/cancel/cancel.c4
-rw-r--r--regress/lib/libpthread/poll/poll.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/regress/lib/libpthread/cancel/cancel.c b/regress/lib/libpthread/cancel/cancel.c
index cd68116b285..f602f7c4f53 100644
--- a/regress/lib/libpthread/cancel/cancel.c
+++ b/regress/lib/libpthread/cancel/cancel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cancel.c,v 1.8 2016/09/20 17:04:34 otto Exp $ */
+/* $OpenBSD: cancel.c,v 1.9 2016/09/20 17:25:06 otto Exp $ */
/* David Leonard <d@openbsd.org>, 1999. Public Domain. */
#include <pthread.h>
@@ -57,7 +57,7 @@ child1fn(void *arg)
SET_NAME("c1");
CHECKr(pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL));
/* something that will block */
- CHECKe(openpty(&fd, &dummy, NULL, NULL, NULL));
+ CHECKe(openpty(&dummy, &fd, NULL, NULL, NULL));
pthread_cleanup_push(c1handler, (void *)&fd);
v();
while (1) {
diff --git a/regress/lib/libpthread/poll/poll.c b/regress/lib/libpthread/poll/poll.c
index 979d2916d9a..687564c330c 100644
--- a/regress/lib/libpthread/poll/poll.c
+++ b/regress/lib/libpthread/poll/poll.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: poll.c,v 1.5 2016/09/20 17:04:35 otto Exp $ */
+/* $OpenBSD: poll.c,v 1.6 2016/09/20 17:25:06 otto Exp $ */
/* David Leonard <d@openbsd.org>, 2001. Public Domain. */
#include <pthread.h>
@@ -64,7 +64,7 @@ main(int argc, char *argv[])
CHECKe(zero = open(_PATH_DEV "zero", O_RDONLY));
CHECKe(null = open(_PATH_DEV "null", O_WRONLY));
- CHECKe(openpty(&tty, &dummy, NULL, NULL, NULL));
+ CHECKe(openpty(&dummy, &tty, NULL, NULL, NULL));
/* Try both descriptors being ready */
p[0].fd = zero;