diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 2002-10-07 22:49:43 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 2002-10-07 22:49:43 +0000 |
commit | a0bd6c792f6011e38ae85763d31c76f2a8d2837b (patch) | |
tree | 97a7f413dfff50aae9c04789c2b62e38e80ff6f6 /regress | |
parent | 754af57db7c7af280b0968ed5fb38520dd114ea2 (diff) |
more meaningful error
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libc_r/siginfo/siginfo.c | 4 | ||||
-rw-r--r-- | regress/lib/libpthread/siginfo/siginfo.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/regress/lib/libc_r/siginfo/siginfo.c b/regress/lib/libc_r/siginfo/siginfo.c index 605dac9a33e..ce3f1f94c51 100644 --- a/regress/lib/libc_r/siginfo/siginfo.c +++ b/regress/lib/libc_r/siginfo/siginfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siginfo.c,v 1.2 2002/10/07 22:17:07 marc Exp $ */ +/* $OpenBSD: siginfo.c,v 1.3 2002/10/07 22:49:42 marc Exp $ */ /* PUBLIC DOMAIN Oct 2002 <marc@snafu.org> */ /* test SA_SIGINFO support */ @@ -12,7 +12,7 @@ void act_handler(int signal, siginfo_t *siginfo, void *context) { - ASSERT(siginfo); + ASSERT(siginfo != NULL); ASSERT(siginfo->si_addr == (char *) 0x987234 && siginfo->si_code == 1 && siginfo->si_trapno == 2); } diff --git a/regress/lib/libpthread/siginfo/siginfo.c b/regress/lib/libpthread/siginfo/siginfo.c index 605dac9a33e..ce3f1f94c51 100644 --- a/regress/lib/libpthread/siginfo/siginfo.c +++ b/regress/lib/libpthread/siginfo/siginfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siginfo.c,v 1.2 2002/10/07 22:17:07 marc Exp $ */ +/* $OpenBSD: siginfo.c,v 1.3 2002/10/07 22:49:42 marc Exp $ */ /* PUBLIC DOMAIN Oct 2002 <marc@snafu.org> */ /* test SA_SIGINFO support */ @@ -12,7 +12,7 @@ void act_handler(int signal, siginfo_t *siginfo, void *context) { - ASSERT(siginfo); + ASSERT(siginfo != NULL); ASSERT(siginfo->si_addr == (char *) 0x987234 && siginfo->si_code == 1 && siginfo->si_trapno == 2); } |