From 5b2deed8a5d5cca2d82423572415a1c629bea488 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 8 Jul 2020 14:19:58 +0200 Subject: string: Fix prototype mismatch in sigabbrev_np, __sigdescr_np GCC 6 does not ignore the const specifier on the return type. --- string/sigabbrev_np.c | 2 +- string/sigdescr_np.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'string') diff --git a/string/sigabbrev_np.c b/string/sigabbrev_np.c index 3cbe14e769..a5ac6da053 100644 --- a/string/sigabbrev_np.c +++ b/string/sigabbrev_np.c @@ -20,7 +20,7 @@ #include #include -const char *const +const char * sigabbrev_np (int signum) { const char *abbrev = NULL; diff --git a/string/sigdescr_np.c b/string/sigdescr_np.c index 5bcf814c1d..bf2d462b9c 100644 --- a/string/sigdescr_np.c +++ b/string/sigdescr_np.c @@ -20,7 +20,7 @@ #include #include -const char *const +const char * __sigdescr_np (int signum) { const char *descr = NULL; -- cgit 1.4.1