about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-02 14:25:43 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-02 14:25:43 -0400
commitadb7093caae451348371d2299f6113b788439602 (patch)
tree38e1abad0cf7247cd6b51286c355105ddfe74f1a
parent1f5ff26cd788d29c77e322e7584da46466723572 (diff)
downloadmusl-adb7093caae451348371d2299f6113b788439602.tar.gz
musl-adb7093caae451348371d2299f6113b788439602.tar.xz
musl-adb7093caae451348371d2299f6113b788439602.zip
fix missing prototypes/wrong signature for psiginfo, psignal
-rw-r--r--include/signal.h3
-rw-r--r--src/signal/psiginfo.c2
2 files changed, 4 insertions, 1 deletions
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 <string.h>
 #include <signal.h>
 
-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);