From: Alexandru Ardelean Date: Tue, 1 Nov 2016 15:49:28 +0000 (+0200) Subject: tests/strerror_override.c: fix compilation error X-Git-Tag: json-c-0.13-20171207~114^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fbdee19dadc0856ef1e465ed9b772119ebb9883;p=thirdparty%2Fjson-c.git tests/strerror_override.c: fix compilation error I got this on Mac OS X at least. Not sure if it shows up in other envs error: ``` strerror_override.c:53:13: error: incompatible redeclaration of library function 'strerror' [-Werror,-Wincompatible-library-redeclaration] const char *strerror(int errno_in) ``` Signed-off-by: Alexandru Ardelean --- diff --git a/tests/strerror_override.c b/tests/strerror_override.c index a5c22925..d197e7f5 100644 --- a/tests/strerror_override.c +++ b/tests/strerror_override.c @@ -50,7 +50,7 @@ static struct { #define PREFIX "ERRNO=" static char errno_buf[128] = PREFIX; -const char *strerror(int errno_in) +char *strerror(int errno_in) { int start_idx; char digbuf[20];