--- xmille-2.0.orig/mille.c
+++ xmille-2.0/mille.c
@@ -1,14 +1,15 @@
# include "mille.h"
# include <signal.h>
+# include <stdlib.h>
# ifdef attron
# include <term.h>
-# endif attron
+# endif
/*
* @(#)mille.c 1.3 (Berkeley) 5/10/83
*/
-int rub();
+void rub( int );
char _sobuf[BUFSIZ];
@@ -99,9 +100,9 @@
* Routine to trap rubouts, and make sure they really want to
* quit.
*/
-rub() {
+void rub( int signum ) {
- signal(SIGINT, 1);
+ signal(SIGINT, SIG_IGN);
if (getyn("Really? "))
die();
signal(SIGINT, rub);
@@ -112,7 +113,7 @@
*/
die() {
- signal(SIGINT, 1);
+ signal(SIGINT, SIG_IGN);
if (outf)
fflush(outf);
finish_ui ();