summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorJustin Brewer <jzb0012@auburn.edu>2018-04-17 15:04:37 -0500
committerJustin Brewer <jzb0012@auburn.edu>2018-04-30 21:45:13 -0500
commitd1c1b668c14dced57026aca936a57c2567f65107 (patch)
treec64a1f229262084675d19f8017d1f59a49c1577a /net.c
parent49bbaacc79dc73ed797450aa94463106b18d2a5d (diff)
Drop __redis_strerror_r
Since _GNU_SOURCE is now guaranteed to be unset, it is no longer necessary to support the GNU-specific version of strerror_r. Drop __redis_strerror_r from the header, and call strerror_r directly. This breaks any external users of this macro, but they shouldn't have been using it in the first place. Signed-off-by: Justin Brewer <jzb0012@auburn.edu>
Diffstat (limited to 'net.c')
-rw-r--r--net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.c b/net.c
index 44f2575..4551f3e 100644
--- a/net.c
+++ b/net.c
@@ -71,7 +71,7 @@ static void __redisSetErrorFromErrno(redisContext *c, int type, const char *pref
if (prefix != NULL)
len = snprintf(buf,sizeof(buf),"%s: ",prefix);
- __redis_strerror_r(errorno, (char *)(buf + len), sizeof(buf) - len);
+ strerror_r(errorno, (char *)(buf + len), sizeof(buf) - len);
__redisSetError(c,type,buf);
}