]> granicus.if.org Git - check/commit
lib/strsignal.c: strsignal() should be not be declared const
authorAnthony G. Basile <blueness@gentoo.org>
Mon, 21 Mar 2016 12:53:31 +0000 (08:53 -0400)
committerAnthony G. Basile <blueness@gentoo.org>
Mon, 21 Mar 2016 13:01:36 +0000 (09:01 -0400)
commit1fe5aa67d025ccf7d51914735985379be101e3b6
tree7d8b98d513289f50e9166ef55f5bb2bd42c5c5d3
parent16d85c8b2b96901f5a27e5e749484b855cd882f5
lib/strsignal.c: strsignal() should be not be declared const

POSIX requires strsignal() to return a pointer to a char, not a pointer
to a const char. [1]  On uClibc, and possibly other libcs, this causes
problems with the correct declaration in string.h.

[1] man 3 strsignal

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
lib/libcompat.h
lib/strsignal.c