summaryrefslogtreecommitdiff
path: root/regress/lib/libc/malloc
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-01-04 12:50:37 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-01-04 12:50:37 +0000
commit08127c6e00f298ed276c42448552b95bb6fc2721 (patch)
tree57e6c128de9788c65109e10254fbe81b0c7b7d24 /regress/lib/libc/malloc
parente959d4c749cdf3fb5195096bf418ffdab0489047 (diff)
A bug in the malloc test uncoveres a bug in longjmp on alpha.
How ironic.
Diffstat (limited to 'regress/lib/libc/malloc')
-rw-r--r--regress/lib/libc/malloc/malloc0test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libc/malloc/malloc0test.c b/regress/lib/libc/malloc/malloc0test.c
index d226af5a281..99eef671966 100644
--- a/regress/lib/libc/malloc/malloc0test.c
+++ b/regress/lib/libc/malloc/malloc0test.c
@@ -17,11 +17,11 @@ void
catch(int signo)
{
got++;
- longjmp(jmp, 0);
+ longjmp(jmp, 1);
}
int
-test(caddr_t p, int size)
+test(char *p, int size)
{
signal(SIGSEGV, catch);
got = 0;