- Replace strerror to strerror_r.
Change-Id: I8a9b6040a91471e59024a25f9b07599e776f5cf3
#include <unistd.h>
#include <log/alog.h>
+#include <util/SafeFunction.h>
#include "FdNotifyObject.h"
+using namespace AskUser::Util;
+
namespace AskUser {
FdNotifyObject::FdNotifyObject() : m_pipeFd{-1, -1} {
int ret = pipe(m_pipeFd);
if (ret != 0) {
int err = errno;
- ALOGE("Couldn't initialize pipes: " << strerror(err));
+ ALOGE("Couldn't initialize pipes: " << safeStrError(err));
return false;
}
return true;