From adb7093caae451348371d2299f6113b788439602 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 2 Sep 2011 14:25:43 -0400 Subject: [PATCH] fix missing prototypes/wrong signature for psiginfo, psignal --- include/signal.h | 3 +++ src/signal/psiginfo.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/signal.h b/include/signal.h index 6625981f..5f39ddbd 100644 --- a/include/signal.h +++ b/include/signal.h @@ -87,6 +87,9 @@ int sigqueue(pid_t, int, const union sigval); int pthread_sigmask(int, const sigset_t *, sigset_t *); int pthread_kill(pthread_t, int); +void psiginfo(const siginfo_t *, const char *); +void psignal(int, const char *); + #endif #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) diff --git a/src/signal/psiginfo.c b/src/signal/psiginfo.c index fa46d2bf..57be34cd 100644 --- a/src/signal/psiginfo.c +++ b/src/signal/psiginfo.c @@ -2,7 +2,7 @@ #include #include -void psiginfo(siginfo_t *si, const char *msg) +void psiginfo(const siginfo_t *si, const char *msg) { char *s = strsignal(si->si_signo); if (msg) fprintf(stderr, "%s: %s\n", msg, s); -- 2.25.1