From: anton Date: Fri, 22 Oct 2021 05:03:57 +0000 (+0000) Subject: knf nits X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=065bbfdcdf552524ec75f6af3b0eb1650b554db7;p=openbsd knf nits --- 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 @@ -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 @@ -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 @@ -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;