diff options
author | deraadt <> | 2003-07-31 21:48:04 +0000 |
---|---|---|
committer | deraadt <> | 2003-07-31 21:48:04 +0000 |
commit | 33c506bfed3ead4cc96819ce600895082c214755 (patch) | |
tree | f684ac5f268a986ffa67596e223c418beaac533a /src/regress/lib/libc/ieeefp/except/except.c | |
parent | 1e17357c09b2a156a0fa1407b68c4158394b9d7e (diff) | |
download | openbsd-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.c | 16 |
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 | ||
9 | void sigfpe(); | ||
10 | volatile sig_atomic_t signal_cought; | 9 | volatile sig_atomic_t signal_cought; |
11 | 10 | ||
12 | static volatile const double one = 1.0; | 11 | static volatile const double one = 1.0; |
@@ -14,8 +13,14 @@ static volatile const double zero = 0.0; | |||
14 | static volatile const double huge = DBL_MAX; | 13 | static volatile const double huge = DBL_MAX; |
15 | static volatile const double tiny = DBL_MIN; | 14 | static volatile const double tiny = DBL_MIN; |
16 | 15 | ||
16 | static void | ||
17 | sigfpe(int signo) | ||
18 | { | ||
19 | signal_cought = 1; | ||
20 | } | ||
21 | |||
17 | int | 22 | int |
18 | main() | 23 | main(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 | ||
86 | void | ||
87 | sigfpe() | ||
88 | { | ||
89 | signal_cought = 1; | ||
90 | } | ||