Fix bug for setting is_sys_time_set 97/278597/1
authorInkyun Kil <inkyun.kil@samsung.com>
Fri, 22 Jul 2022 07:50:32 +0000 (16:50 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Fri, 22 Jul 2022 07:50:32 +0000 (16:50 +0900)
Change-Id: I7d4fe40360e91d9ce0df43c0de17420cf637e6fc
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
alarm-manager.c

index c8d46c927b2db0dcfbc963360477de71594e91cf..21bdc45d7832817bef7128e3b32c997493e70c96 100644 (file)
@@ -399,7 +399,6 @@ int __set_time(time_t _time)
        int ret = 0;
        struct timeval tv;
        struct tm tm, *gmtime_res;
-       gboolean is_sys_time_set;
 
        tv.tv_sec = _time;
        tv.tv_usec = 0;
@@ -412,8 +411,8 @@ int __set_time(time_t _time)
        if (ret < 0)
                ALARM_MGR_EXCEPTION_PRINT("settimeofday is failed.[%d]", errno);
 
-       if (!_get_is_sys_time_set(&is_sys_time_set))
-               _set_is_sys_time_set();
+       if (!_set_is_sys_time_set())
+               ALARM_MGR_EXCEPTION_PRINT("_set_is_sys_time_set is failed");
 
        if (_APPFW_FEATURE_WAKEUP_USING_RTC) {
                /* Using /dev/alarm, this function changes both OS time and RTC. */