From: Tim Rühsen Date: Wed, 5 Apr 2017 13:58:22 +0000 (+0200) Subject: error: Avoid "function declaration isn't a prototype" warning. X-Git-Tag: v1.0~6266 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=082e780886b6b68208b83642c286421e47834b12;p=gnulib.git error: Avoid "function declaration isn't a prototype" warning. * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype. --- diff --git a/ChangeLog b/ChangeLog index 49988416db..94f3219396 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-04-05 Tim Rühsen + + error: Avoid "function declaration isn't a prototype" warning. + * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype. + 2017-04-21 Bruno Haible vasnprintf: Fix for MSVC 14. diff --git a/lib/error.c b/lib/error.c index 535d8a2ad9..0ed7c86bc1 100644 --- a/lib/error.c +++ b/lib/error.c @@ -109,9 +109,9 @@ extern void __error_at_line (int status, int errnum, const char *file_name, "this configure-time declaration test was not run" # endif # if STRERROR_R_CHAR_P -char *strerror_r (); +char *strerror_r (int errnum, char *buf, size_t buflen); # else -int strerror_r (); +int strerror_r (int errnum, char *buf, size_t buflen); # endif # endif