diff --git a/config.h.in b/config.h.in index 9c0927a9e..c4c639f8d 100644 --- a/config.h.in +++ b/config.h.in @@ -680,9 +680,6 @@ /* Define to 1 if the `putenv' has a const argument. */ #undef PUTENV_CONST -/* Define as the return type of signal handlers (`int' or `void'). */ -#undef RETSIGTYPE - /* The user sudo should run commands as by default. */ #undef RUNAS_DEFAULT diff --git a/plugins/sudoers/logging.h b/plugins/sudoers/logging.h index fab1894e5..90166ced1 100644 --- a/plugins/sudoers/logging.h +++ b/plugins/sudoers/logging.h @@ -52,6 +52,6 @@ void audit_failure(char **, char const * const, ...); void log_allowed(int); void log_denial(int, int); void log_error(int flags, const char *fmt, ...) __printflike(2, 3); -RETSIGTYPE reapchild(int); +void reapchild(int); #endif /* _LOGGING_H */ diff --git a/plugins/sudoers/visudo.c b/plugins/sudoers/visudo.c index e2926d689..39bce8151 100644 --- a/plugins/sudoers/visudo.c +++ b/plugins/sudoers/visudo.c @@ -96,7 +96,7 @@ struct sudoersfile { /* * Function prototypes */ -static RETSIGTYPE quit(int); +static void quit(int); static char *get_args(char *); static char *get_editor(char **); static void get_hostname(void); @@ -1141,7 +1141,7 @@ cleanup(int gotsignal) /* * Unlink sudoers temp files (if any) and exit. */ -static RETSIGTYPE +static void quit(int signo) { cleanup(signo);