Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use CHIP_ERROR_POSIX instead of MapErrorPOSIX #9852

Merged
merged 1 commit into from
Sep 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/platform/Tizen/SystemTimeSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ CHIP_ERROR GetClock_RealTime(uint64_t & curTime)
struct timeval tv;
if (gettimeofday(&tv, nullptr) != 0)
{
return MapErrorPOSIX(errno);
return CHIP_ERROR_POSIX(errno);
}
if (tv.tv_sec < CHIP_SYSTEM_CONFIG_VALID_REAL_TIME_THRESHOLD)
{
Expand All @@ -85,7 +85,7 @@ CHIP_ERROR GetClock_RealTimeMS(uint64_t & curTime)
struct timeval tv;
if (gettimeofday(&tv, nullptr) != 0)
{
return MapErrorPOSIX(errno);
return CHIP_ERROR_POSIX(errno);
}
if (tv.tv_sec < CHIP_SYSTEM_CONFIG_VALID_REAL_TIME_THRESHOLD)
{
Expand All @@ -107,7 +107,7 @@ CHIP_ERROR SetClock_RealTime(uint64_t newCurTime)
tv.tv_usec = static_cast<long>(newCurTime % UINT64_C(1000000));
if (settimeofday(&tv, nullptr) != 0)
{
return (errno == EPERM) ? CHIP_ERROR_ACCESS_DENIED : MapErrorPOSIX(errno);
return (errno == EPERM) ? CHIP_ERROR_ACCESS_DENIED : CHIP_ERROR_POSIX(errno);
}
#if CHIP_PROGRESS_LOGGING
{
Expand Down