summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJongkyu Koo <jk.koo@samsung.com>2017-09-28 13:12:54 +0900
committerJongkyu Koo <jk.koo@samsung.com>2017-09-28 05:37:50 +0000
commit101cba71b0404651208866b2e210426786e4d78a (patch)
tree5cf388c1914b6649e77410bb3adb8fcc406dca78
parent5920e9816f13e81f7deda3c26e38e4c091fe80de (diff)
downloadmsg-service-101cba71b0404651208866b2e210426786e4d78a.tar.gz
msg-service-101cba71b0404651208866b2e210426786e4d78a.tar.bz2
msg-service-101cba71b0404651208866b2e210426786e4d78a.zip
Change-Id: I42f138c0b87fbe4bf55f7edbb51e6f73f77fabd2 Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
-rw-r--r--manager/src/msg-manager-notification.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/manager/src/msg-manager-notification.cpp b/manager/src/msg-manager-notification.cpp
index e51b00a..909a0d6 100644
--- a/manager/src/msg-manager-notification.cpp
+++ b/manager/src/msg-manager-notification.cpp
@@ -180,7 +180,7 @@ char *_get_app_id(void)
if ('\0' != *g_app_id)
return g_app_id;
- char *app_id = NULL;
+ const char *app_id = NULL;
switch (get_tizen_profile()) {
case _PROFILE_WEARABLE:
app_id = MSG_WEARABLE_APP_ID;
@@ -1027,12 +1027,12 @@ void setText(notification_h noti_h, MSG_MGR_NOTI_INFO_S *noti_info)
case MSG_MGR_NOTI_TYPE_MMS_READ_REPORT: {
setNotiText(noti_h, NOTIFICATION_TEXT_TYPE_TITLE, "Read Report", READ_REPORT_MESSAGE);
- char readStatusString[50] = {0,};
+ char readStatusString[50] = {0, };
if (noti_info->extra_data == MSG_READ_REPORT_IS_DELETED) {
snprintf(readStatusString, sizeof(readStatusString), "Message deleted by %s", noti_info->sender);
notification_set_text(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, readStatusString, MESSAGE_DELETED_BY_PS, NOTIFICATION_VARIABLE_TYPE_STRING, noti_info->sender, NOTIFICATION_VARIABLE_TYPE_NONE);
} else {
- char readStatusString[50] = {0,};
+ char readStatusString[50] = {0, };
snprintf(readStatusString, sizeof(readStatusString), "Message read by %s", noti_info->sender);
notification_set_text(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, readStatusString, MESSAGE_READ_BY_PS, NOTIFICATION_VARIABLE_TYPE_STRING, noti_info->sender, NOTIFICATION_VARIABLE_TYPE_NONE);
}
@@ -1277,7 +1277,7 @@ void setActiveText(notification_h noti_h, MSG_MGR_NOTI_INFO_S *noti_info)
setNotiText(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, noti_info->active_text, NULL);
} else {
if (noti_info->active_media_cnt > 1) {
- char attach_string[20] = {0,};
+ char attach_string[20] = {0, };
snprintf(attach_string, sizeof(attach_string), "%d attachments", noti_info->active_media_cnt);
notification_set_text(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, attach_string, MSG_PD_ATTACHMENTS, NOTIFICATION_VARIABLE_TYPE_INT, noti_info->active_media_cnt, NOTIFICATION_VARIABLE_TYPE_NONE);
} else if (noti_info->active_media_cnt == 1) {
@@ -1291,7 +1291,7 @@ void setActiveText(notification_h noti_h, MSG_MGR_NOTI_INFO_S *noti_info)
setNotiText(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, noti_info->active_text, NULL);
} else {
if (noti_info->active_media_cnt > 1) {
- char attach_string[20] = {0,};
+ char attach_string[20] = {0, };
snprintf(attach_string, sizeof(attach_string), "%d attachments", noti_info->active_media_cnt);
setNotiText(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, attach_string, NULL);
} else if (noti_info->active_media_cnt == 1) {
@@ -2164,7 +2164,7 @@ int getLatestMsgInfo(MSG_MGR_NOTI_INFO_S *noti_info, bool isForInstantMessage)
noti_info->id = 0;
if (MsgSettingSetInt(CB_NOTI_PRIV_ID, noti_info->id) != MSG_SUCCESS)
- MSG_MGR_DEBUG("MsgSettingSetInt fail : CB_NOTI_PRIV_ID");
+ MSG_MGR_DEBUG("MsgSettingSetInt Fail : CB_NOTI_PRIV_ID");
}
return MSG_ERR_DB_STEP;
}