Fix wrong use of definition about RTC 17/139317/3 accepted/tizen/3.0/common/20170724.045700 accepted/tizen/3.0/ivi/20170724.031618 accepted/tizen/3.0/mobile/20170724.032245 submit/tizen_3.0/20170721.064920
authorJiwoong Im <jiwoong.im@samsung.com>
Tue, 18 Jul 2017 10:07:35 +0000 (19:07 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Wed, 19 Jul 2017 10:39:21 +0000 (19:39 +0900)
- There is wrong use of _APPFW_FEATURE_WAKEUP_USING_RTC and it causes
  build fail in tv profile.

Change-Id: Ifa6b887ecf6d4989d463452adda9991844b9c895
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
alarm-manager.c

index eaa3c8f..80bf03b 100644 (file)
@@ -394,10 +394,17 @@ int __set_time(time_t _time)
        else {
                goto success;
        }
+
+success:
+#ifdef _APPFW_FEATURE_ALARM_MANAGER_MODULE_LOG
+       strncpy(log_tag, "SET TIME", strlen("SET TIME"));
+       __save_module_log(log_tag, log_message);
+       return 0;
+#endif
 #else
        ALARM_MGR_LOG_PRINT("[alarm-server] RTC does not work.");
-#endif /* _APPFW_FEATURE_WAKEUP_USING_RTC */
        return 0;
+#endif /* _APPFW_FEATURE_WAKEUP_USING_RTC */
 
 failure:
 #ifdef _APPFW_FEATURE_ALARM_MANAGER_MODULE_LOG
@@ -406,12 +413,6 @@ failure:
 #endif
        return -1;
 
-success:
-#ifdef _APPFW_FEATURE_ALARM_MANAGER_MODULE_LOG
-       strncpy(log_tag, "SET TIME", strlen("SET TIME"));
-       __save_module_log(log_tag, log_message);
-#endif
-       return 0;
 }
 
 bool __alarm_clean_list()