From: Brian Aker Date: Fri, 2 Mar 2012 07:19:05 +0000 (-0800) Subject: Fix for Ubuntu. X-Git-Tag: 1.0.5~16 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=5caec883b96337590adb447438ff7be1e552bf30;p=awesomized%2Flibmemcached Fix for Ubuntu. --- diff --git a/util/log.hpp b/util/log.hpp index 3c940758..885133a2 100644 --- a/util/log.hpp +++ b/util/log.hpp @@ -96,10 +96,10 @@ struct log_info_st if (opt_syslog) { char buffer[1024]; - (void)getcwd(buffer, sizeof(buffer)); + char *getcwd_ret= getcwd(buffer, sizeof(buffer)); syslog(LOG_ERR, "Could not open log file \"%.*s\", from \"%s\", open failed with (%s)", int(filename.size()), filename.c_str(), - buffer, + getcwd_ret, strerror(errno)); } std::cerr << "Could not open log file for writing, switching to stderr." << std::endl;