summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2021-10-22 05:03:58 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2021-10-22 05:03:58 +0000
commit766e1ddb7252aed35086f2ec7b5431579895c2c9 (patch)
treeae650201857eadd7e2ddabd68efb14e9c07b3d76 /regress/sys
parent5e7c38f1a629e78b05d0060a193d63d304e06d8e (diff)
knf nits
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/kern/pipe/test-kqueue.c6
-rw-r--r--regress/sys/kern/pipe/test-ping-pong.c9
-rw-r--r--regress/sys/kern/pipe/test-run-down.c5
3 files changed, 11 insertions, 9 deletions
diff --git a/regress/sys/kern/pipe/test-kqueue.c b/regress/sys/kern/pipe/test-kqueue.c
index 36ad8d936de..ede5bc96c88 100644
--- a/regress/sys/kern/pipe/test-kqueue.c
+++ b/regress/sys/kern/pipe/test-kqueue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test-kqueue.c,v 1.3 2021/05/08 06:53:19 anton Exp $ */
+/* $OpenBSD: test-kqueue.c,v 1.4 2021/10/22 05:03:57 anton Exp $ */
/*
* Copyright (c) 2019 Anton Lindqvist <anton@openbsd.org>
@@ -204,7 +204,6 @@ ctx_teardown(struct context *ctx)
close(ctx->c_pipe[0]);
close(ctx->c_pipe[1]);
close(ctx->c_kq);
-
}
static int
@@ -238,7 +237,8 @@ ctx_lock(struct context *ctx)
errc(1, error, "pthread_mutex_lock");
}
-static void ctx_unlock(struct context *ctx)
+static void
+ctx_unlock(struct context *ctx)
{
int error;
diff --git a/regress/sys/kern/pipe/test-ping-pong.c b/regress/sys/kern/pipe/test-ping-pong.c
index 41d02db6b90..94686e24845 100644
--- a/regress/sys/kern/pipe/test-ping-pong.c
+++ b/regress/sys/kern/pipe/test-ping-pong.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test-ping-pong.c,v 1.1 2019/11/09 21:10:15 anton Exp $ */
+/* $OpenBSD: test-ping-pong.c,v 1.2 2021/10/22 05:03:57 anton Exp $ */
/*
* Copyright (c) 2019 Anton Lindqvist <anton@openbsd.org>
@@ -71,7 +71,8 @@ test_ping_pong(void)
if (n == -1)
err(1, "[c] write");
if (n != sizeof(pong))
- errx(1, "[c] write: %ld < %zu", n, sizeof(pong));
+ errx(1, "[c] write: %ld < %zu",
+ n, sizeof(pong));
nrounds--;
}
@@ -103,7 +104,8 @@ test_ping_pong(void)
if (n == -1)
err(1, "[p] write");
if (n != sizeof(ping))
- errx(1, "[p] write: %ld < %zu", n, sizeof(ping));
+ errx(1, "[p] write: %ld < %zu",
+ n, sizeof(ping));
n = read(rp, buf, sizeof(buf));
if (n == -1)
@@ -126,4 +128,3 @@ test_ping_pong(void)
return 0;
}
-
diff --git a/regress/sys/kern/pipe/test-run-down.c b/regress/sys/kern/pipe/test-run-down.c
index f782126853e..56b9ee0b10a 100644
--- a/regress/sys/kern/pipe/test-run-down.c
+++ b/regress/sys/kern/pipe/test-run-down.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test-run-down.c,v 1.2 2019/11/14 21:17:00 anton Exp $ */
+/* $OpenBSD: test-run-down.c,v 1.3 2021/10/22 05:03:57 anton Exp $ */
/*
* Copyright (c) 2019 Anton Lindqvist <anton@openbsd.org>
@@ -132,7 +132,8 @@ ctx_lock(struct context *ctx)
errc(1, error, "pthread_mutex_lock");
}
-static void ctx_unlock(struct context *ctx)
+static void
+ctx_unlock(struct context *ctx)
{
int error;