diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-17 05:37:21 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-17 05:37:21 +0000 |
commit | 62a7900bf3fa2a24baef2b303c51653fea531264 (patch) | |
tree | 5514af21ca656ca6d48928bb8203fd33752d6fa0 /regress | |
parent | 6d26f5fe044da604b04064acd38f31cc8e131e20 (diff) |
Don't warn when we don't have an errno, warnx.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sys/kern/nanosleep/nanosleep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sys/kern/nanosleep/nanosleep.c b/regress/sys/kern/nanosleep/nanosleep.c index 41a9a20349d..9c7e0ff1ace 100644 --- a/regress/sys/kern/nanosleep/nanosleep.c +++ b/regress/sys/kern/nanosleep/nanosleep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nanosleep.c,v 1.2 2002/02/17 05:33:33 art Exp $ */ +/* $OpenBSD: nanosleep.c,v 1.3 2002/02/17 05:37:20 art Exp $ */ /* * Written by Artur Grabowski <art@openbsd.org> 2002 Public Domain. */ @@ -113,7 +113,7 @@ with_signal(void) rts.tv_sec = 0; rts.tv_nsec = 0; if (nanosleep(&ts, &rts) == 0) { - warn("with-signal: nanosleep"); + warnx("with-signal: nanosleep"); return 1; } if (rts.tv_sec == 0 && rts.tv_nsec == 0) { @@ -195,7 +195,7 @@ time_elapsed_with_signal(void) } if (nanosleep(&ts, &rts) == 0) { - warn("nanosleep"); + warnx("nanosleep"); return 1; } |