From 1b4895922bf38d19de74744aae47668bb524fe3c Mon Sep 17 00:00:00 2001 From: claudio Date: Mon, 30 Aug 2021 08:06:02 +0000 Subject: [PATCH] Make lines not wrap on 80 char terminals. Code gets more readable. --- regress/sys/kern/unveil/syscalls.c | 46 +++++++++++++++--------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/regress/sys/kern/unveil/syscalls.c b/regress/sys/kern/unveil/syscalls.c index 5367b179291..0828a5c1504 100644 --- a/regress/sys/kern/unveil/syscalls.c +++ b/regress/sys/kern/unveil/syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syscalls.c,v 1.27 2020/04/07 18:05:47 claudio Exp $ */ +/* $OpenBSD: syscalls.c,v 1.28 2021/08/30 08:06:02 claudio Exp $ */ /* * Copyright (c) 2017-2019 Bob Beck @@ -35,32 +35,32 @@ char uv_dir2[] = "/tmp/uvdir2.XXXXXX"; /* not unveiled */ char uv_file1[] = "/tmp/uvfile1.XXXXXX"; /* unveiled */ char uv_file2[] = "/tmp/uvfile2.XXXXXX"; /* not unveiled */ -#define UV_SHOULD_SUCCEED(A, B) do { \ - if (A) { \ - err(1, "%s:%d - %s", __FILE__, __LINE__, B); \ - } \ +#define UV_SHOULD_SUCCEED(A, B) do { \ + if (A) { \ + err(1, "%s:%d - %s", __FILE__, __LINE__, B); \ + } \ } while (0) -#define UV_SHOULD_ENOENT(A, B) do { \ - if (A) { \ - if (do_uv && errno != ENOENT) \ - err(1, "%s:%d - %s", __FILE__, __LINE__, B); \ - } else { \ - if (do_uv) \ - errx(1, "%s:%d - %s worked when it should not " \ - "have", __FILE__, __LINE__, B); \ - } \ +#define UV_SHOULD_ENOENT(A, B) do { \ + if (A) { \ + if (do_uv && errno != ENOENT) \ + err(1, "%s:%d - %s", __FILE__, __LINE__, B); \ + } else { \ + if (do_uv) \ + errx(1, "%s:%d - %s worked when it should not " \ + "have", __FILE__, __LINE__, B); \ + } \ } while(0) -#define UV_SHOULD_EACCES(A, B) do { \ - if (A) { \ - if (do_uv && errno != EACCES) \ - err(1, "%s:%d - %s", __FILE__, __LINE__, B); \ - } else { \ - if (do_uv) \ - errx(1, "%s:%d - %s worked when it should not " \ - "have", __FILE__, __LINE__, B); \ - } \ +#define UV_SHOULD_EACCES(A, B) do { \ + if (A) { \ + if (do_uv && errno != EACCES) \ + err(1, "%s:%d - %s", __FILE__, __LINE__, B); \ + } else { \ + if (do_uv) \ + errx(1, "%s:%d - %s worked when it should not " \ + "have", __FILE__, __LINE__, B); \ + } \ } while(0) /* all the things unless we override */ -- 2.20.1