Skip to content

Commit

Permalink
use CHIP_ERROR_POSIX instead of MapErrorPOSIX (#9852)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 authored and pull[bot] committed Sep 30, 2021
1 parent 22cea95 commit 2f7262a
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 2f7262a

Please sign in to comment.