summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2009-09-20 14:03:56 +0530
committerMukund Sivaraman <muks@banu.com>2009-09-20 14:03:56 +0530
commit73409c9fe14646d26893c7b6173cb973fb819372 (patch)
treecb19dfc384b9b35611a2c3462d2213d4ac102db7
parent919eedc7f9c2e702162647ae79e6db079f98e981 (diff)
downloadtinyproxy-73409c9fe14646d26893c7b6173cb973fb819372.tar.gz
tinyproxy-73409c9fe14646d26893c7b6173cb973fb819372.zip
build: Remove use of the obsolete AC_TYPE_SIGNAL macro
C89 compilers use void return type for signal handler functions.
-rw-r--r--configure.ac1
-rw-r--r--src/main.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 71ed21a..6b0b3b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -177,7 +177,6 @@ dnl Checks for types
dnl
AC_TYPE_SIZE_T
AC_TYPE_PID_T
-AC_TYPE_SIGNAL
AC_UNP_CHECK_TYPE(uint8_t, unsigned char)
AC_UNP_CHECK_TYPE(int16_t, short)
AC_UNP_CHECK_TYPE(uint16_t, unsigned short)
diff --git a/src/main.c b/src/main.c
index c5d080f..8f2c185 100644
--- a/src/main.c
+++ b/src/main.c
@@ -51,7 +51,7 @@ unsigned int processed_config_file = FALSE; /* boolean */
/*
* Handle a signal
*/
-static RETSIGTYPE
+static void
takesig (int sig)
{
pid_t pid;