[map-agent] Fix build warning errors 63/63163/1
authorSudha Bheemanna <b.sudha@samsung.com>
Tue, 22 Mar 2016 09:05:56 +0000 (14:35 +0530)
committerSudha Bheemanna <b.sudha@samsung.com>
Tue, 22 Mar 2016 09:05:56 +0000 (14:35 +0530)
Change-Id: I21313f68fccf1870f361d50851e42d687132f786
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
map-agent/bluetooth_map_agent.c

index 5548139..5b1c816 100755 (executable)
@@ -899,7 +899,7 @@ static char *__bt_prepare_msg_bmseg(msg_struct_t msg_info, gboolean attach,
                                        MSG_MESSAGE_SMS_DATA_STR,
                                        msg_body, BT_MAP_MSG_BODY_MAX);
                if (ret == MSG_SUCCESS) {
-                       g_string_append_printf(msg, LENGTH, strlen(msg_body));
+                       g_string_append_printf(msg, LENGTH, (int)strlen(msg_body));
                        g_string_append_printf(msg, MSG_BODY, msg_body);
                }
        } else {
@@ -994,7 +994,7 @@ static struct message_info __bt_message_info_get(msg_struct_t msg_struct_handle)
        ret = msg_get_int_value(msg_struct_handle, MSG_MESSAGE_ID_INT, &msg_id);
        if (ret == MSG_SUCCESS) {
                uid = __bt_add_id(msg_id);
-               snprintf(msg_handle, sizeof(msg_handle), "%llx", uid);
+               snprintf(msg_handle, sizeof(msg_handle), "%llx", (long long unsigned int)uid);
        }
        msg_info.handle = g_strdup(msg_handle);