summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorguenther <>2015-09-14 06:31:25 +0000
committerguenther <>2015-09-14 06:31:25 +0000
commit631e2e1c0de0d507d6c3ef3349cce9c9003dac9b (patch)
tree91a3d14b8169959fc199a83d61e27ca69dcfebda /src
parentccf0b47cd77c8c167d186cc3f01dfc310ee5b29f (diff)
downloadopenbsd-631e2e1c0de0d507d6c3ef3349cce9c9003dac9b.tar.gz
openbsd-631e2e1c0de0d507d6c3ef3349cce9c9003dac9b.tar.bz2
openbsd-631e2e1c0de0d507d6c3ef3349cce9c9003dac9b.zip
Test the exported strsignal() API, not the (now hidden) internal API
noted by daniel@
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libc/strerror/strerror_test.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/regress/lib/libc/strerror/strerror_test.c b/src/regress/lib/libc/strerror/strerror_test.c
index 700080cd3e..23b542f1ee 100644
--- a/src/regress/lib/libc/strerror/strerror_test.c
+++ b/src/regress/lib/libc/strerror/strerror_test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strerror_test.c,v 1.4 2005/05/13 07:06:20 otto Exp $ */ 1/* $OpenBSD: strerror_test.c,v 1.5 2015/09/14 06:31:25 guenther Exp $ */
2/* 2/*
3 * Copyright (c) 2004 Marc Espie <espie@cvs.openbsd.org> 3 * Copyright (c) 2004 Marc Espie <espie@cvs.openbsd.org>
4 * 4 *
@@ -38,13 +38,7 @@ check_strerror_r(int val)
38void 38void
39check_strsignal(int val) 39check_strsignal(int val)
40{ 40{
41 char buffer[NL_TEXTMAX + 1]; 41 printf("%s\n", strsignal(val));
42 int i, r;
43
44 memset(buffer, 'X', sizeof(buffer) - 1);
45 buffer[sizeof(buffer) - 1] = '\0';
46 (void)__strsignal(val, buffer);
47 printf("%s\n", buffer);
48} 42}
49 43
50int 44int