diff options
author | 2005-11-17 20:16:26 +0000 | |
---|---|---|
committer | 2005-11-17 20:16:26 +0000 | |
commit | 47e1df1a5ae5ce4b47a985d8aadd1665cac39688 (patch) | |
tree | 3d4e9de40163e449eb176a7628e5054ced07141a | |
parent | Test a few more rint functions. (diff) | |
download | wireguard-openbsd-47e1df1a5ae5ce4b47a985d8aadd1665cac39688.tar.xz wireguard-openbsd-47e1df1a5ae5ce4b47a985d8aadd1665cac39688.zip |
errx is better here
Diffstat (limited to '')
-rw-r--r-- | regress/lib/libm/rint/rint.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/regress/lib/libm/rint/rint.c b/regress/lib/libm/rint/rint.c index e685152bf24..f6259d11153 100644 --- a/regress/lib/libm/rint/rint.c +++ b/regress/lib/libm/rint/rint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rint.c,v 1.5 2005/11/17 20:09:59 otto Exp $ */ +/* $OpenBSD: rint.c,v 1.6 2005/11/17 20:16:26 otto Exp $ */ /* Written by Michael Shalayeff, 2003, Public domain. */ @@ -34,17 +34,17 @@ main(int argc, char *argv[]) sigaction(SIGFPE, &sa, NULL); if (rint(8.6) != 9.) - err(1, "rint"); + errx(1, "rint"); if (rintf(8.6F) != 9) - err(1, "rintf"); + errx(1, "rintf"); if (lrint(8.6) != 9L) - err(1, "lrint"); + errx(1, "lrint"); if (lrintf(8.6F) != 9L) - err(1, "lrintf"); + errx(1, "lrintf"); if (llrint(8.6) != 9LL) - err(1, "llrint"); + errx(1, "llrint"); if (llrintf(8.6F) != 9LL) - err(1, "llrintf"); + errx(1, "llrintf"); exit(0); } |