diff options
author | Inkyun Kil <inkyun.kil@samsung.com> | 2020-05-26 09:58:23 +0900 |
---|---|---|
committer | Inkyun Kil <inkyun.kil@samsung.com> | 2020-05-26 10:27:45 +0900 |
commit | 154e7b41c03493666269788899b663f9e8045c1c (patch) | |
tree | faf669124a03d5d40c59f2d8de04d904b5d3261c | |
parent | 720ed2c2210b7414ac36e7c59d3e5205355bb739 (diff) | |
download | alarm-manager-154e7b41c03493666269788899b663f9e8045c1c.tar.gz alarm-manager-154e7b41c03493666269788899b663f9e8045c1c.tar.bz2 alarm-manager-154e7b41c03493666269788899b663f9e8045c1c.zip |
Fix bug for updating alarm
Change-Id: I0b681bc664083bcfcb3c9d6610d2b810dd7e5974
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
-rw-r--r-- | server/alarm-manager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/alarm-manager.c b/server/alarm-manager.c index 104b2f2..f67beda 100644 --- a/server/alarm-manager.c +++ b/server/alarm-manager.c @@ -438,8 +438,8 @@ static __alarm_info_t *__alarm_update_in_list(uid_t uid, alarm_id_t alarm_id, found = true; found_base_info = &entry->base_info; - if (update_flag == ALARM_UPDATE_FLAG_TIME || - ALARM_UPDATE_FLAG_WEEK) { + if ((update_flag == ALARM_UPDATE_FLAG_TIME) || + (update_flag == ALARM_UPDATE_FLAG_WEEK)) { if (!__check_bundle_for_update(entry->bundle, entry->uid)) { *error_code = ERR_ALARM_NOT_PERMITTED_APP; @@ -1087,7 +1087,7 @@ static bool __alarm_update(uid_t uid, alarm_id_t alarm_id, update_flag, error_code); if (!__alarm_info) { LOGE("[alarm-server]: requested alarm_id " - "(%d) does not exist. so this value is invalid id.", alarm_id); + "(%d) is not proper. so this value is invalid id.", alarm_id); return false; } |