diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2017-04-05 15:58:22 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2017-04-22 01:20:47 +0200 |
commit | 082e780886b6b68208b83642c286421e47834b12 (patch) | |
tree | 40b5be8196b88694ea572a61e0d36b3301e2fc8a /lib/error.c | |
parent | 0d01189c540f63159448ba6bf4740bb20ff1e1ee (diff) | |
download | gnulib-082e780886b6b68208b83642c286421e47834b12.tar.gz |
error: Avoid "function declaration isn't a prototype" warning.
* lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
Diffstat (limited to 'lib/error.c')
-rw-r--r-- | lib/error.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |