From f0051a7678d138ffc88a4c9c6d9add8966abe4f9 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 16 Nov 2010 20:13:37 -0600 Subject: [PATCH] Remove AC_TYPE_SIGNAL usage This macro is deemed unnecessary by even the autoconf guys, so we really don't need to use it. Signed-off-by: Dan McGee Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- 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 e8541d20..a8987a48 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 9b59f520..1cb24e61 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 5ba798b4..4239667e 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -305,7 +305,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);