summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/ieeefp/except/except.c
diff options
context:
space:
mode:
authorderaadt <>2003-07-31 21:48:04 +0000
committerderaadt <>2003-07-31 21:48:04 +0000
commit33c506bfed3ead4cc96819ce600895082c214755 (patch)
treef684ac5f268a986ffa67596e223c418beaac533a /src/regress/lib/libc/ieeefp/except/except.c
parent1e17357c09b2a156a0fa1407b68c4158394b9d7e (diff)
downloadopenbsd-33c506bfed3ead4cc96819ce600895082c214755.tar.gz
openbsd-33c506bfed3ead4cc96819ce600895082c214755.tar.bz2
openbsd-33c506bfed3ead4cc96819ce600895082c214755.zip
various cleanups; david says results are same
Diffstat (limited to 'src/regress/lib/libc/ieeefp/except/except.c')
-rw-r--r--src/regress/lib/libc/ieeefp/except/except.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/regress/lib/libc/ieeefp/except/except.c b/src/regress/lib/libc/ieeefp/except/except.c
index 6b65e8f3c4..7ab8fc4cb2 100644
--- a/src/regress/lib/libc/ieeefp/except/except.c
+++ b/src/regress/lib/libc/ieeefp/except/except.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: except.c,v 1.3 2001/01/29 02:05:42 niklas Exp $ */ 1/* $OpenBSD: except.c,v 1.4 2003/07/31 21:48:03 deraadt Exp $ */
2 2
3#include <stdio.h> 3#include <stdio.h>
4#include <signal.h> 4#include <signal.h>
@@ -6,7 +6,6 @@
6#include <ieeefp.h> 6#include <ieeefp.h>
7#include <float.h> 7#include <float.h>
8 8
9void sigfpe();
10volatile sig_atomic_t signal_cought; 9volatile sig_atomic_t signal_cought;
11 10
12static volatile const double one = 1.0; 11static volatile const double one = 1.0;
@@ -14,8 +13,14 @@ static volatile const double zero = 0.0;
14static volatile const double huge = DBL_MAX; 13static volatile const double huge = DBL_MAX;
15static volatile const double tiny = DBL_MIN; 14static volatile const double tiny = DBL_MIN;
16 15
16static void
17sigfpe(int signo)
18{
19 signal_cought = 1;
20}
21
17int 22int
18main() 23main(int argc, char *argv[])
19{ 24{
20 volatile double x; 25 volatile double x;
21 26
@@ -83,8 +88,3 @@ main()
83 exit(0); 88 exit(0);
84} 89}
85 90
86void
87sigfpe()
88{
89 signal_cought = 1;
90}