diff options
author | deraadt <> | 2003-08-15 23:13:07 +0000 |
---|---|---|
committer | deraadt <> | 2003-08-15 23:13:07 +0000 |
commit | 782252fc8707defaacb647af8795dedac318c7df (patch) | |
tree | 38e2ce6bb8a00ee0a07bc1aa7e689ecbe13519a0 /src/regress/lib | |
parent | 89141738fc05289d3121bdc1e4284d6ff1d96cf6 (diff) | |
download | openbsd-782252fc8707defaacb647af8795dedac318c7df.tar.gz openbsd-782252fc8707defaacb647af8795dedac318c7df.tar.bz2 openbsd-782252fc8707defaacb647af8795dedac318c7df.zip |
remove extra \n in {warn,err}{,x} calls
Diffstat (limited to 'src/regress/lib')
-rw-r--r-- | src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c b/src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c index 1232dd660d..7f77544665 100644 --- a/src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c +++ b/src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: malloc_errno.c,v 1.2 2003/07/31 21:48:03 deraadt Exp $ */ | 1 | /* $OpenBSD: malloc_errno.c,v 1.3 2003/08/15 23:13:07 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Public domain. 2003, Otto Moerbeek | 3 | * Public domain. 2003, Otto Moerbeek |
4 | */ | 4 | */ |
@@ -16,11 +16,11 @@ testerrno(size_t sz) | |||
16 | p = malloc(sz); | 16 | p = malloc(sz); |
17 | 17 | ||
18 | if (p == NULL && errno != ENOMEM) | 18 | if (p == NULL && errno != ENOMEM) |
19 | errx(1, "fail: %lx %p %d\n", (unsigned long)sz, p, errno); | 19 | errx(1, "fail: %lx %p %d", (unsigned long)sz, p, errno); |
20 | 20 | ||
21 | /* if alloc succeeded, test if errno did not change */ | 21 | /* if alloc succeeded, test if errno did not change */ |
22 | if (p != NULL && errno != -1) | 22 | if (p != NULL && errno != -1) |
23 | errx(1, "fail: %lx %p %d\n", (unsigned long)sz, p, errno); | 23 | errx(1, "fail: %lx %p %d", (unsigned long)sz, p, errno); |
24 | 24 | ||
25 | free(p); | 25 | free(p); |
26 | } | 26 | } |