Silences this warning

error.c:114:1: warning: function declaration isn't a prototype
[-Wstrict-prototypes]
 int strerror_r ();

Regards, Tim
From 1a41e02838d13d0c061e90081697af8a91d25fd0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim=20R=C3=BChsen?= <[email protected]>
Date: Wed, 5 Apr 2017 15:58:22 +0200
Subject: [PATCH] * lib/error.c: Fix prototype of strerror_r()

---
 lib/error.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/error.c b/lib/error.c
index 535d8a2ad..0ed7c86bc 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
 
-- 
2.11.0

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to