From 23043fc219569b9edf2842347ed528801781f417 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 20 Sep 2016 17:25:07 +0000 Subject: switch master & slave; prompted by bluhm@ --- regress/lib/libpthread/cancel/cancel.c | 4 ++-- regress/lib/libpthread/poll/poll.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'regress/lib') 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 , 1999. Public Domain. */ #include @@ -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 , 2001. Public Domain. */ #include @@ -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; -- cgit v1.2.3