mon_handler() should be static

This commit is contained in:
Todd C. Miller
2013-10-25 13:55:21 -06:00
parent e2bfbe6039
commit 60d20f1e6e

View File

@@ -133,7 +133,7 @@ pty_cleanup(void)
* The other end of signal_pipe is checked in the monitor event loop. * The other end of signal_pipe is checked in the monitor event loop.
*/ */
#ifdef SA_SIGINFO #ifdef SA_SIGINFO
void static void
mon_handler(int s, siginfo_t *info, void *context) mon_handler(int s, siginfo_t *info, void *context)
{ {
unsigned char signo = (unsigned char)s; unsigned char signo = (unsigned char)s;
@@ -154,7 +154,7 @@ mon_handler(int s, siginfo_t *info, void *context)
ignore_result(write(signal_pipe[1], &signo, sizeof(signo))); ignore_result(write(signal_pipe[1], &signo, sizeof(signo)));
} }
#else #else
void static void
mon_handler(int s) mon_handler(int s)
{ {
unsigned char signo = (unsigned char)s; unsigned char signo = (unsigned char)s;