Commit d3f5a35b authored by Matthias Andree's avatar Matthias Andree

RETSIGTYPE -> void

parent 008b030a
......@@ -31,7 +31,7 @@
#include "tunable.h"
static RETSIGTYPE
static void
sigchld_handler (int sig)
/* process SIGCHLD to obtain the exit code of the terminating process */
{
......@@ -43,7 +43,7 @@ sigchld_handler (int sig)
(void)sig;
}
RETSIGTYPE null_signal_handler(int sig) { (void)sig; }
void null_signal_handler(int sig) { (void)sig; }
SIGHANDLERTYPE set_signal_handler(int sig, SIGHANDLERTYPE handler)
/*
......
......@@ -95,7 +95,7 @@ void set_timeout(int timeleft)
setitimer(ITIMER_REAL, &ntimeout, (struct itimerval *)NULL);
}
static RETSIGTYPE timeout_handler (int signal)
static void timeout_handler (int signal)
/* handle SIGALRM signal indicating a server timeout */
{
(void)signal;
......
......@@ -80,8 +80,8 @@ static int activecount; /* count number of active entries */
static struct runctl cmd_run; /* global options set from command line */
static time_t parsetime; /* time of last parse */
static RETSIGTYPE terminate_run(int);
static RETSIGTYPE terminate_poll(int);
static void terminate_run(int);
static void terminate_poll(int);
#if defined(__FreeBSD__) && defined(__FreeBSD_USE_KVM)
/* drop SGID kmem privileage until we need it */
......@@ -123,7 +123,7 @@ static char *timestamp (void)
#define timestamp rfc822timestamp
#endif
static RETSIGTYPE donothing(int sig)
static void donothing(int sig)
{
set_signal_handler(sig, donothing);
lastsig = sig;
......@@ -1408,7 +1408,7 @@ static int load_params(int argc, char **argv, int optind)
return(implicitmode);
}
static RETSIGTYPE terminate_poll(int sig)
static void terminate_poll(int sig)
/* to be executed at the end of a poll cycle */
{
......@@ -1426,7 +1426,7 @@ static RETSIGTYPE terminate_poll(int sig)
#endif /* POP3_ENABLE */
}
static RETSIGTYPE terminate_run(int sig)
static void terminate_run(int sig)
/* to be executed on normal or signal-induced termination */
{
struct query *ctl;
......
......@@ -643,10 +643,9 @@ char *prependdir (const char *, const char *);
char *MD5Digest (unsigned const char *);
void hmac_md5 (const unsigned char *, size_t, const unsigned char *, size_t, unsigned char *, size_t);
int POP3_auth_rpa(char *, char *, int socket);
#define RETSIGTYPE void
typedef RETSIGTYPE (*SIGHANDLERTYPE) (int);
typedef void (*SIGHANDLERTYPE) (int);
void deal_with_sigchld(void);
RETSIGTYPE null_signal_handler(int sig);
void null_signal_handler(int sig);
SIGHANDLERTYPE set_signal_handler(int sig, SIGHANDLERTYPE handler);
int daemonize(const char *);
char *fm_getpassword(char *);
......
......@@ -34,7 +34,7 @@ static tcflag_t flags;
static void save_tty_state(void);
static void disable_tty_echo(void);
static void restore_tty_state(void);
static RETSIGTYPE sigint_handler(int);
static void sigint_handler(int);
char *fm_getpassword(char *prompt)
{
......@@ -121,7 +121,7 @@ static void restore_tty_state(void)
tcsetattr(ttyfd, TCSAFLUSH, &termb);
}
static RETSIGTYPE sigint_handler(int signum)
static void sigint_handler(int signum)
{
(void)signum;
restore_tty_state();
......
......@@ -42,7 +42,7 @@ volatile int lastsig; /* last signal received */
*/
static sig_atomic_t alarm_latch = FALSE;
RETSIGTYPE gotsigalrm(int sig)
void gotsigalrm(int sig)
{
set_signal_handler(sig, gotsigalrm);
lastsig = sig;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment