]> granicus.if.org Git - sudo/commitdiff
Remove use of RETSIGTYPE; all modern systems have signal handlers that
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 21 May 2010 22:40:04 +0000 (18:40 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 21 May 2010 22:40:04 +0000 (18:40 -0400)
return void.

config.h.in
plugins/sudoers/logging.h
plugins/sudoers/visudo.c

index 9c0927a9e596ab9b06682393ad8d62b15f823fa6..c4c639f8d97fea811a957754cb6a7d88542dcad9 100644 (file)
 /* 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
 
index fab1894e5cbf8914da5ef23154fa9b7e1178307e..90166ced18996382343b598f4a20ae4d2a6f59bd 100644 (file)
@@ -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 */
index e2926d689ed10d5599b4f361d1c278254358996a..39bce815119dc84a16165503f6fe94e434d3dd83 100644 (file)
@@ -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);