diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-02-15 23:35:13 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-02-15 23:35:13 +0000 |
commit | f3b89538791485a03eea70f41654c1b641212f7a (patch) | |
tree | 4e41063913c469e815feff00fe83b9d36a9b8277 /regress/sys/kern/signal | |
parent | 02f0ed0b22f901bbe1d3de59eb5326ee744465d6 (diff) |
Fool gcc3 into not detecting we want a divide by zero at compile time.
Diffstat (limited to 'regress/sys/kern/signal')
-rw-r--r-- | regress/sys/kern/signal/sigfpe/sigfpe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/sys/kern/signal/sigfpe/sigfpe.c b/regress/sys/kern/signal/sigfpe/sigfpe.c index 6f32b382c9f..1f54c31e1d8 100644 --- a/regress/sys/kern/signal/sigfpe/sigfpe.c +++ b/regress/sys/kern/signal/sigfpe/sigfpe.c @@ -6,7 +6,7 @@ #include <unistd.h> void check_oflow(void); -void check_div0(void); +void check_div0(int); void timedout(int); __dead void usage(void); @@ -39,7 +39,7 @@ main(int argc, char **argv) if (oflag) check_oflow(); else - check_div0(); + check_div0(0); exit(0); } @@ -60,12 +60,12 @@ check_oflow(void) } void -check_div0(void) +check_div0(int zero) { int i; alarm(10); - i = 1 / 0; + i = 1 / zero; alarm(0); } |