From 5d499a6385f7f4f339e3f0aa7a4c9272093b9e3d Mon Sep 17 00:00:00 2001 From: Taejin Woo Date: Fri, 25 Mar 2016 19:47:39 +0900 Subject: [PATCH] Fix build fail for 64bit casting issue Change-Id: If21e0dea60530e1faae100808564760cfdba6f84 Signed-off-by: Taejin Woo --- bt-share/src/obex-event-handler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bt-share/src/obex-event-handler.c b/bt-share/src/obex-event-handler.c index ea7b638..c77144c 100644 --- a/bt-share/src/obex-event-handler.c +++ b/bt-share/src/obex-event-handler.c @@ -735,9 +735,9 @@ void _bt_app_obex_download_dup_file_cb(void *data, void *obj, char storage[STORAGE_PATH_LEN_MAX] = { 0, }; char temp_filename[BT_FILE_PATH_LEN_MAX] = { 0, }; - DBG("response : %d\n", (int)event_info); + DBG("response : %d\n", (int)(uintptr_t)event_info); - if ((int)event_info == POPUP_RESPONSE_OK) { + if ((int)(uintptr_t)event_info == POPUP_RESPONSE_OK) { DBG("OK button pressed \n"); _bt_get_default_storage(storage); @@ -752,7 +752,7 @@ void _bt_app_obex_download_dup_file_cb(void *data, void *obj, DBG("temp_filename %s", temp_filename); bluetooth_obex_server_accept_authorize(server_auth_info->filename); - } else if ((int)event_info == POPUP_RESPONSE_CANCEL) { + } else if ((int)(uintptr_t)event_info == POPUP_RESPONSE_CANCEL) { bluetooth_obex_server_reject_authorize(); } return; -- 2.7.4