[pacman-dev] [PATCH 2/2] Remove AC_TYPE_SIGNAL usage
Dan McGee
dan at archlinux.org
Wed Nov 17 03:13:37 CET 2010
This macro is deemed unnecessary by even the autoconf guys, so we really
don't need to use it.
Signed-off-by: Dan McGee <dan at archlinux.org>
---
configure.ac | 1 -
lib/libalpm/dload.c | 2 +-
src/pacman/pacman.c | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index e8541d2..a8987a4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -185,7 +185,6 @@ AC_STRUCT_DIRENT_D_TYPE
AC_FUNC_FORK
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_FUNC_MKTIME
-AC_TYPE_SIGNAL
AC_CHECK_FUNCS([geteuid realpath regcomp strcasecmp \
strndup strrchr strsep swprintf \
wcwidth uname])
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index 9b59f52..1cb24e6 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -89,7 +89,7 @@ static const char *gethost(struct url *fileurl)
}
int dload_interrupted;
-static RETSIGTYPE inthandler(int signum)
+static void inthandler(int signum)
{
dload_interrupted = 1;
}
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 15abecc..e3bea2c 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -261,7 +261,7 @@ static ssize_t xwrite(int fd, const void *buf, size_t count)
* in a consistant state.
* @param signum the thrown signal
*/
-static RETSIGTYPE handler(int signum)
+static void handler(int signum)
{
int out = fileno(stdout);
int err = fileno(stderr);
--
1.7.3.2
More information about the pacman-dev
mailing list