]> Savannah Git Hosting - gnulib.git/commitdiff
error: Avoid "function declaration isn't a prototype" warning.
authorTim Rühsen <tim.ruehsen@gmx.de>
Wed, 5 Apr 2017 13:58:22 +0000 (15:58 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 21 Apr 2017 23:20:47 +0000 (01:20 +0200)
* lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.

ChangeLog
lib/error.c

index 49988416db6ae51e0297ec66b1e52c9bc72fb041..94f3219396c2b1078060242ee9b833e5e04cf58f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
+
+       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  <bruno@clisp.org>
 
        vasnprintf: Fix for MSVC 14.
index 535d8a2ad9221b9db2f87f68a860c4ca3f0b4b6e..0ed7c86bc1f1b3b7baf485aa7362189f47eced84 100644 (file)
@@ -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