Get rid of support of ancient signal handler return type int
Such environments are missing void type, older K&R C, and such supports already had been removed in various places. Furthermore, current hardcoded 'SIGNALRETURNSINT' is wrong.
This commit is contained in:
@@ -2,7 +2,7 @@ MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
bin_PROGRAMS = ttauth
|
||||
|
||||
ttauth_CFLAGS = -I../../slib -I../../lib -DSIGNALRETURNSINT
|
||||
ttauth_CFLAGS = -I../../slib -I../../lib
|
||||
|
||||
ttauth_LDADD = @LIBTT@ $(X_LIBS)
|
||||
|
||||
|
||||
@@ -478,25 +478,16 @@ static Bool ttauth_allowed = True; /* if allowed to write auth file */
|
||||
static char *ttauth_filename = NULL;
|
||||
static Bool dieing = False;
|
||||
|
||||
#ifdef SIGNALRETURNSINT
|
||||
#define _signal_t int
|
||||
#else
|
||||
#define _signal_t void
|
||||
#endif
|
||||
|
||||
/* ARGSUSED */
|
||||
static _signal_t
|
||||
static void
|
||||
die(int sig)
|
||||
{
|
||||
dieing = True;
|
||||
exit (auth_finalize ());
|
||||
/* NOTREACHED */
|
||||
#ifdef SIGNALRETURNSINT
|
||||
return -1; /* for picky compilers */
|
||||
#endif
|
||||
}
|
||||
|
||||
static _signal_t
|
||||
static void
|
||||
catchsig(int sig)
|
||||
{
|
||||
#ifdef SYSV
|
||||
@@ -505,9 +496,6 @@ catchsig(int sig)
|
||||
if (verbose && ttauth_modified) printf ("\r\n");
|
||||
die (sig);
|
||||
/* NOTREACHED */
|
||||
#ifdef SIGNALRETURNSINT
|
||||
return -1; /* for picky compilers */
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user