diff options
author | Justin Brewer <jzb0012@auburn.edu> | 2018-04-17 15:04:37 -0500 |
---|---|---|
committer | Justin Brewer <jzb0012@auburn.edu> | 2018-04-30 21:45:13 -0500 |
commit | d1c1b668c14dced57026aca936a57c2567f65107 (patch) | |
tree | c64a1f229262084675d19f8017d1f59a49c1577a /net.c | |
parent | 49bbaacc79dc73ed797450aa94463106b18d2a5d (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |