diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-12-17 23:11:47 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-12-17 23:11:47 -0500 |
commit | 051ee4061b1f605b4b95a868c8c4d84b5dfd09b8 (patch) | |
tree | 65bc83123aa3e3b74f93b2c049f87aa093a7d371 /nslcd/hackers.c | |
parent | c588513154f287bb5ce3766c39696a9c4a16f149 (diff) |
Have log_log automatically append strerror(errno)
Instead of having strerror used everywhere. I did this because strerror is
NOT thread safe. This still isn't thread safe, but at least now it's all
in one place, easy to fix.
Diffstat (limited to 'nslcd/hackers.c')
-rw-r--r-- | nslcd/hackers.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nslcd/hackers.c b/nslcd/hackers.c index fe0e614..f471266 100644 --- a/nslcd/hackers.c +++ b/nslcd/hackers.c @@ -25,8 +25,7 @@ session_create(const struct nslcd_config *cfg, pthread_t *thread) { } if (pthread_create(thread, NULL, session_worker, (void*)session)) { - log_log(LOG_ERR, "unable to start hackers worker thread: %s", - strerror(errno)); + log_log(LOG_ERR, "unable to start hackers worker thread"); exit(EXIT_FAILURE); } |