summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-23 10:13:14 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-23 10:13:14 -0800
commit6dda11c17f2fdc47d43f269dccee98ec66cc8c4b (patch)
tree9e05e11a5a9273f40f3fd660ac0a09e8922015c5
parent399dc5d6282f90fee2f6071aadde977280656ffc (diff)
downloadxorg-app-xauth-baserock/morph.tar.gz
Assume signal handlers return void, as C89 requiresbaserock/morph
Drops use of autoconf's obsolete AC_TYPE_SIGNAL and Imake's even more obsolete SIGNALRETURNSINT. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac2
-rw-r--r--process.c10
2 files changed, 2 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 849622e..eed7949 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,8 +36,6 @@ m4_ifndef([XORG_MACROS_VERSION],
XORG_MACROS_VERSION(1.8)
XORG_DEFAULT_OPTIONS
-AC_TYPE_SIGNAL
-
AC_CHECK_HEADERS([net/errno.h])
AC_CHECK_FUNCS([strlcpy])
diff --git a/process.c b/process.c
index 75091b4..166b769 100644
--- a/process.c
+++ b/process.c
@@ -637,18 +637,15 @@ static volatile Bool dieing = False;
#define WRITES(fd, S) (void)write((fd), (S), strlen((S)))
/* ARGSUSED */
-static RETSIGTYPE
+static void
die(int sig)
{
dieing = True;
_exit (auth_finalize ());
/* NOTREACHED */
-#ifdef SIGNALRETURNSINT
- return -1; /* for picky compilers */
-#endif
}
-static RETSIGTYPE
+static void
catchsig(int sig)
{
#ifdef SYSV
@@ -665,9 +662,6 @@ catchsig(int sig)
#endif
die (sig);
/* NOTREACHED */
-#ifdef SIGNALRETURNSINT
- return -1; /* for picky compilers */
-#endif
}
static void