summaryrefslogtreecommitdiff
path: root/regress/libexec
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2024-08-23 12:56:27 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2024-08-23 12:56:27 +0000
commit88a374a4ea682237847f106063cfd5c9413a7e46 (patch)
tree8793341b9f79ef4707495e7425b4b56224e6cae4 /regress/libexec
parent30c7e9e0cb0ce86c6623cbb6e19c62c01f7ee29b (diff)
Remove unwanted trailing newlines from err/warn format strings.
Diffstat (limited to 'regress/libexec')
-rw-r--r--regress/libexec/ld.so/hidden/libaa/aa.c4
-rw-r--r--regress/libexec/ld.so/hidden/libab/ab.c4
-rw-r--r--regress/libexec/ld.so/hidden/test1/test1.c14
-rw-r--r--regress/libexec/ld.so/hidden/test2/test2.c6
-rw-r--r--regress/libexec/ld.so/lazy/libfoo/foo.c4
-rw-r--r--regress/libexec/ld.so/lazy/prog/prog.c4
6 files changed, 18 insertions, 18 deletions
diff --git a/regress/libexec/ld.so/hidden/libaa/aa.c b/regress/libexec/ld.so/hidden/libaa/aa.c
index c8ea2ac28fb..9a7fccd9baf 100644
--- a/regress/libexec/ld.so/hidden/libaa/aa.c
+++ b/regress/libexec/ld.so/hidden/libaa/aa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aa.c,v 1.2 2007/08/01 12:53:28 kurt Exp $ */
+/* $OpenBSD: aa.c,v 1.3 2024/08/23 12:56:26 anton Exp $ */
/*
* Copyright (c) 2007 Kurt Miller <kurt@openbsd.org>
@@ -27,5 +27,5 @@ void test_aa()
{
libaa_hidden_val = hidden_check;
if (hidden_check != &hidden_check)
- errx(1, "libaa: hidden_check != &hidden_check\n");
+ errx(1, "libaa: hidden_check != &hidden_check");
}
diff --git a/regress/libexec/ld.so/hidden/libab/ab.c b/regress/libexec/ld.so/hidden/libab/ab.c
index 9f07283a899..7fb0dc59ca7 100644
--- a/regress/libexec/ld.so/hidden/libab/ab.c
+++ b/regress/libexec/ld.so/hidden/libab/ab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ab.c,v 1.2 2007/08/01 12:53:28 kurt Exp $ */
+/* $OpenBSD: ab.c,v 1.3 2024/08/23 12:56:26 anton Exp $ */
/*
* Copyright (c) 2007 Kurt Miller <kurt@openbsd.org>
@@ -27,5 +27,5 @@ void test_ab()
{
libab_hidden_val = hidden_check;
if (hidden_check != &hidden_check)
- errx(1, "libab: hidden_check != &hidden_check\n");
+ errx(1, "libab: hidden_check != &hidden_check");
}
diff --git a/regress/libexec/ld.so/hidden/test1/test1.c b/regress/libexec/ld.so/hidden/test1/test1.c
index 151bc8e3a02..c92e3b0aab2 100644
--- a/regress/libexec/ld.so/hidden/test1/test1.c
+++ b/regress/libexec/ld.so/hidden/test1/test1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test1.c,v 1.3 2017/08/07 16:33:52 bluhm Exp $ */
+/* $OpenBSD: test1.c,v 1.4 2024/08/23 12:56:26 anton Exp $ */
/*
* Copyright (c) 2007 Kurt Miller <kurt@openbsd.org>
@@ -35,28 +35,28 @@ main()
libaa = dlopen(LIBAA, RTLD_LAZY);
libab = dlopen(LIBAB, RTLD_LAZY);
if (libaa == NULL)
- errx(1, "dlopen(%s, RTLD_LAZY) FAILED\n", LIBAA);
+ errx(1, "dlopen(%s, RTLD_LAZY) FAILED", LIBAA);
if (libab == NULL)
- errx(1, "dlopen(%s, RTLD_LAZY) FAILED\n", LIBAB);
+ errx(1, "dlopen(%s, RTLD_LAZY) FAILED", LIBAB);
hidden_test = (void (*)())dlsym(libaa, "test_aa");
if (hidden_test == NULL)
- errx(1, "dlsym(libaa, \"test_aa\") FAILED\n");
+ errx(1, "dlsym(libaa, \"test_aa\") FAILED");
(*hidden_test)();
hidden_test = (void (*)())dlsym(libab, "test_ab");
if (hidden_test == NULL)
- errx(1, "dlsym(libab, \"test_ab\") FAILED\n");
+ errx(1, "dlsym(libab, \"test_ab\") FAILED");
(*hidden_test)();
if (hidden_check != NULL)
- errx(1, "hidden_check != NULL in main prog\n");
+ errx(1, "hidden_check != NULL in main prog");
if (libaa_hidden_val == NULL || libab_hidden_val == NULL ||
libaa_hidden_val == libab_hidden_val)
- errx(1, "incorrect hidden_check detected in libs\n");
+ errx(1, "incorrect hidden_check detected in libs");
dlclose(libaa);
dlclose(libab);
diff --git a/regress/libexec/ld.so/hidden/test2/test2.c b/regress/libexec/ld.so/hidden/test2/test2.c
index 52642357f9d..44eb7596b7b 100644
--- a/regress/libexec/ld.so/hidden/test2/test2.c
+++ b/regress/libexec/ld.so/hidden/test2/test2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test2.c,v 1.3 2017/08/07 16:33:52 bluhm Exp $ */
+/* $OpenBSD: test2.c,v 1.4 2024/08/23 12:56:26 anton Exp $ */
/*
* Copyright (c) 2007 Kurt Miller <kurt@openbsd.org>
@@ -36,11 +36,11 @@ main()
test_ab();
if (hidden_check != NULL)
- errx(1, "hidden_check != NULL in main prog\n");
+ errx(1, "hidden_check != NULL in main prog");
if (libaa_hidden_val == NULL || libab_hidden_val == NULL ||
libaa_hidden_val == libab_hidden_val)
- errx(1, "incorrect hidden_check detected in libs\n");
+ errx(1, "incorrect hidden_check detected in libs");
return (0);
}
diff --git a/regress/libexec/ld.so/lazy/libfoo/foo.c b/regress/libexec/ld.so/lazy/libfoo/foo.c
index bf82a8572bc..663dcf723f9 100644
--- a/regress/libexec/ld.so/lazy/libfoo/foo.c
+++ b/regress/libexec/ld.so/lazy/libfoo/foo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: foo.c,v 1.3 2017/08/07 16:33:52 bluhm Exp $ */
+/* $OpenBSD: foo.c,v 1.4 2024/08/23 12:56:26 anton Exp $ */
/* Public domain. 2008, Matthieu Herrb */
#include <dlfcn.h>
@@ -15,7 +15,7 @@ foo_init(void)
printf("loading %s\n", BAR);
h = dlopen(BAR, RTLD_LAZY|RTLD_GLOBAL);
if (h == NULL)
- errx(1, "dlopen %s: %s\n", BAR, dlerror());
+ errx(1, "dlopen %s: %s", BAR, dlerror());
printf("loaded: %s\n", BAR);
}
diff --git a/regress/libexec/ld.so/lazy/prog/prog.c b/regress/libexec/ld.so/lazy/prog/prog.c
index 1959b7108e8..7c60228dccd 100644
--- a/regress/libexec/ld.so/lazy/prog/prog.c
+++ b/regress/libexec/ld.so/lazy/prog/prog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: prog.c,v 1.3 2017/02/25 07:28:32 jsg Exp $ */
+/* $OpenBSD: prog.c,v 1.4 2024/08/23 12:56:26 anton Exp $ */
/* Public Domain, 2008, Matthieu Herrb */
#include <dlfcn.h>
@@ -19,7 +19,7 @@ main(int argc, char *argv[])
printf("loading: %s\n", FOO);
handle = dlopen(FOO, RTLD_LAZY|RTLD_GLOBAL);
if (handle == NULL) {
- errx(1, "dlopen: %s: %s\n", FOO, dlerror());
+ errx(1, "dlopen: %s: %s", FOO, dlerror());
}
printf("loaded: %s\n", FOO);
printf("looking up foo\n");