summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2002-01-04 12:50:36 +0000
committerart <art@openbsd.org>2002-01-04 12:50:36 +0000
commitbba7a0c59741c670405adba94612ec925b8bbeaa (patch)
tree95efecae27515b00fbf1b677deae45b7957ed857
parentcheck (p != NULL), not n. (diff)
downloadwireguard-openbsd-bba7a0c59741c670405adba94612ec925b8bbeaa.tar.xz
wireguard-openbsd-bba7a0c59741c670405adba94612ec925b8bbeaa.zip
A bug in the malloc test uncoveres a bug in longjmp on alpha.
How ironic.
-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;