aboutsummaryrefslogtreecommitdiffstats
path: root/src/sig_handlers.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-08 02:23:21 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-08 02:23:21 +0000
commitf7d150a360be0730a0eeaf6ff5e787508e8ede0d (patch)
treefc8852dac991da5673dc6c05e015b4f6042aa645 /src/sig_handlers.c
parent6395edab6997cf09b9cb4bb296be66cd49866547 (diff)
downloadmpd-f7d150a360be0730a0eeaf6ff5e787508e8ede0d.tar.gz
mpd-f7d150a360be0730a0eeaf6ff5e787508e8ede0d.tar.xz
mpd-f7d150a360be0730a0eeaf6ff5e787508e8ede0d.zip
more sparse cleanups
* less-commonly compiled things like ao/mvp outputs * Adding -Wno-transparent-union to SPARSE_FLAGS makes it check inside decode.c, directory.c, player.c, and sig_handlers.c * remove unused variables leftover from the master process in sig_handlers.c git-svn-id: https://svn.musicpd.org/mpd/trunk@4598 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/sig_handlers.c')
-rw-r--r--src/sig_handlers.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/sig_handlers.c b/src/sig_handlers.c
index 2c6a07a00..15ca0829c 100644
--- a/src/sig_handlers.c
+++ b/src/sig_handlers.c
@@ -36,10 +36,7 @@
#include <errno.h>
#include <unistd.h>
-extern volatile int masterPid;
-extern volatile int mainPid;
-
-int handlePendingSignals()
+int handlePendingSignals(void)
{
if (signal_is_pending(SIGINT) || signal_is_pending(SIGTERM)) {
DEBUG("main process got SIGINT or SIGTERM, exiting\n");
@@ -78,7 +75,7 @@ void chldSigHandler(int signal)
}
}
-void initSigHandlers()
+void initSigHandlers(void)
{
struct sigaction sa;
@@ -94,7 +91,7 @@ void initSigHandlers()
signal_handle(SIGHUP);
}
-void finishSigHandlers()
+void finishSigHandlers(void)
{
signal_unhandle(SIGINT);
signal_unhandle(SIGUSR1);
@@ -102,7 +99,7 @@ void finishSigHandlers()
signal_unhandle(SIGHUP);
}
-void setSigHandlersForDecoder()
+void setSigHandlersForDecoder(void)
{
struct sigaction sa;
@@ -119,7 +116,7 @@ void setSigHandlersForDecoder()
while (sigaction(SIGTERM, &sa, NULL) < 0 && errno == EINTR) ;
}
-void ignoreSignals()
+void ignoreSignals(void)
{
struct sigaction sa;
@@ -135,7 +132,7 @@ void ignoreSignals()
while (sigaction(SIGHUP, &sa, NULL) < 0 && errno == EINTR) ;
}
-void blockSignals()
+void blockSignals(void)
{
sigset_t sset;
@@ -148,7 +145,7 @@ void blockSignals()
while (sigprocmask(SIG_BLOCK, &sset, NULL) < 0 && errno == EINTR) ;
}
-void unblockSignals()
+void unblockSignals(void)
{
sigset_t sset;