summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/malloc/malloc0test
diff options
context:
space:
mode:
authorderaadt <>2003-07-31 21:48:04 +0000
committerderaadt <>2003-07-31 21:48:04 +0000
commit33c506bfed3ead4cc96819ce600895082c214755 (patch)
treef684ac5f268a986ffa67596e223c418beaac533a /src/regress/lib/libc/malloc/malloc0test
parent1e17357c09b2a156a0fa1407b68c4158394b9d7e (diff)
downloadopenbsd-33c506bfed3ead4cc96819ce600895082c214755.tar.gz
openbsd-33c506bfed3ead4cc96819ce600895082c214755.tar.bz2
openbsd-33c506bfed3ead4cc96819ce600895082c214755.zip
various cleanups; david says results are same
Diffstat (limited to 'src/regress/lib/libc/malloc/malloc0test')
-rw-r--r--src/regress/lib/libc/malloc/malloc0test/malloc0test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libc/malloc/malloc0test/malloc0test.c b/src/regress/lib/libc/malloc/malloc0test/malloc0test.c
index 39c3fd2e64..910b466bd4 100644
--- a/src/regress/lib/libc/malloc/malloc0test/malloc0test.c
+++ b/src/regress/lib/libc/malloc/malloc0test/malloc0test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: malloc0test.c,v 1.1 2003/07/15 10:09:37 otto Exp $ */ 1/* $OpenBSD: malloc0test.c,v 1.2 2003/07/31 21:48:03 deraadt Exp $ */
2/* 2/*
3 * Public domain. 2001, Theo de Raadt 3 * Public domain. 2001, Theo de Raadt
4 */ 4 */
@@ -14,14 +14,14 @@
14volatile sig_atomic_t got; 14volatile sig_atomic_t got;
15jmp_buf jmp; 15jmp_buf jmp;
16 16
17void 17static void
18catch(int signo) 18catch(int signo)
19{ 19{
20 got++; 20 got++;
21 longjmp(jmp, 1); 21 longjmp(jmp, 1);
22} 22}
23 23
24int 24static int
25test(char *p, int size) 25test(char *p, int size)
26{ 26{
27 signal(SIGSEGV, catch); 27 signal(SIGSEGV, catch);