From dcd035bbd6bf56423f5e3baf1c1d5b48566a22f9 Mon Sep 17 00:00:00 2001 From: sinikang Date: Thu, 17 Jan 2019 11:39:34 +0900 Subject: [PATCH] Remodify svace issue (WGID 308150) Change-Id: Iaf88c58422d5721729d23e468cb50318683b4e66 --- src/time_update.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.34.1