From: sinikang Date: Thu, 17 Jan 2019 02:39:34 +0000 (+0900) Subject: Remodify svace issue (WGID 308150) X-Git-Tag: submit/tizen/20190118.015147~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dcd035bbd6bf56423f5e3baf1c1d5b48566a22f9;p=platform%2Fcore%2Ftelephony%2Ftel-plugin-nitz.git Remodify svace issue (WGID 308150) Change-Id: Iaf88c58422d5721729d23e468cb50318683b4e66 --- diff --git a/src/time_update.c b/src/time_update.c index e6b2105..da25289 100644 --- a/src/time_update.c +++ b/src/time_update.c @@ -223,7 +223,7 @@ static gboolean __update_timezone_by_offset(const struct tnoti_network_timeinfo } else { UChar utf16_timezone[NITZ_TIMEZONE_MAX_LEN] = { 0 }; UCalendar *cal = NULL; - gboolean in_dst = FALSE; + bool in_dst = false; UErrorCode ec = U_ZERO_ERROR; GList *list = NULL; @@ -311,7 +311,7 @@ GList * nitz_get_tzlist(char *iso) const UChar* timezone_id = 0; int timezone_id_len = 0; int offset = 0; - gboolean in_dst = 0; + bool in_dst = false; GList *tz_list = NULL; UCalendar *cal = NULL; unsigned int offset_hash = 0; @@ -330,7 +330,6 @@ GList * nitz_get_tzlist(char *iso) cal = ucal_open(timezone_id, u_strlen(timezone_id), uloc_getDefault(), UCAL_TRADITIONAL, &ec); in_dst = ucal_inDaylightTime(cal, &ec); - in_dst = (in_dst == 1) ? 1 : 0; offset = ucal_get(cal, UCAL_ZONE_OFFSET, &ec); offset_hash = (offset/1800000) + 24; ucal_close(cal);