diff options
Diffstat (limited to 'grap/main.c')
-rw-r--r-- | grap/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/grap/main.c b/grap/main.c index eb4478945c02..52c77b4ee6a4 100644 --- a/grap/main.c +++ b/grap/main.c @@ -17,8 +17,12 @@ #include <string.h> #include <unistd.h> #include "grap.h" +#include "global.h" #include "y.tab.h" +static void onintr(int n); +static void fpecatch(int n); + int dbg = 0; #define GRAPDEFINES LIBDIR "/grap.defines" @@ -48,8 +52,6 @@ extern void getdata(void); int main(int argc, char *argv[]) { - extern void onintr(int), fpecatch(int); - if (signal(SIGINT, SIG_IGN) != SIG_IGN) signal(SIGINT, onintr); signal(SIGFPE, fpecatch); @@ -102,14 +104,14 @@ main(int argc, char *argv[]) } /*ARGSUSED*/ -void onintr(int n) +static void onintr(int n __unused) { if (!dbg) unlink(tempfile); exit(1); } -void fpecatch(int n) +static void fpecatch(int n) { WARNING("floating point exception"); onintr(n); |