summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-08-30 08:06:03 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-08-30 08:06:03 +0000
commitfc224f83be6078b508f9eb2c40ee19e78a711585 (patch)
tree6c28c9e7182ad8461e15bf5f540b56b276731590
parent0bdc7da30b17647b901121a51f62335f01c56f33 (diff)
Make lines not wrap on 80 char terminals. Code gets more readable.
-rw-r--r--regress/sys/kern/unveil/syscalls.c46
1 files 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 <beck@openbsd.org>
@@ -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 */