summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c6
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}