summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-07-08 14:19:58 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-07-08 14:19:58 +0200
commit5b2deed8a5d5cca2d82423572415a1c629bea488 (patch)
tree98b2840060f9e0e3ccc8944c78c3f606c2ec952e /string
parentbeea361050728138b82c57dda0c4810402d342b9 (diff)
downloadglibc-5b2deed8a5d5cca2d82423572415a1c629bea488.tar.gz
glibc-5b2deed8a5d5cca2d82423572415a1c629bea488.tar.xz
glibc-5b2deed8a5d5cca2d82423572415a1c629bea488.zip
string: Fix prototype mismatch in sigabbrev_np, __sigdescr_np
GCC 6 does not ignore the const specifier on the return type.
Diffstat (limited to 'string')
-rw-r--r--string/sigabbrev_np.c2
-rw-r--r--string/sigdescr_np.c2
2 files changed, 2 insertions, 2 deletions
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 <signal.h>
 #include <array_length.h>
 
-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 <signal.h>
 #include <array_length.h>
 
-const char *const
+const char *
 __sigdescr_np (int signum)
 {
   const char *descr = NULL;