From 85ad70e23047fb75bf6b34abf1dc9eae0f5b2a4c Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sun, 13 Dec 2009 11:02:46 -0800 Subject: [PATCH] fix type for strerror_r --- lib/roken/strerror_r.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/roken/strerror_r.c b/lib/roken/strerror_r.c index 60bf108d0..d2ed9a97a 100644 --- a/lib/roken/strerror_r.c +++ b/lib/roken/strerror_r.c @@ -40,8 +40,8 @@ extern int sys_nerr; extern char *sys_errlist[]; -char* ROKEN_LIB_FUNCTION -strerror_r(int eno, char *strerrbuf, size_t buflen) +int ROKEN_LIB_FUNCTION +rk_strerror_r(int eno, char *strerrbuf, size_t buflen) { int ret; if(eno < 0 || eno >= sys_nerr) {