From 382530fdafdb779443e0c30dc0a6bd6d22e034da Mon Sep 17 00:00:00 2001 From: sinikang Date: Fri, 6 Dec 2019 15:11:51 +0900 Subject: [PATCH] Fix 64bit build error Change-Id: I74358bf8b851dea798dd1068fa5369d6c38af50a Signed-off-by: sinikang --- packaging/tel-plugin-atdongle.spec | 2 +- src/atd_sim.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packaging/tel-plugin-atdongle.spec b/packaging/tel-plugin-atdongle.spec index 3997a9e..25d7152 100644 --- a/packaging/tel-plugin-atdongle.spec +++ b/packaging/tel-plugin-atdongle.spec @@ -1,6 +1,6 @@ Name: tel-plugin-atdongle Summary: AT dongle plugin for telephony -Version: 0.1.36 +Version: 0.1.37 Release: 1 Group: Development/Libraries License: Apache-2.0 diff --git a/src/atd_sim.c b/src/atd_sim.c index 95d4aa4..7ddf495 100644 --- a/src/atd_sim.c +++ b/src/atd_sim.c @@ -716,7 +716,7 @@ static void on_response_get_facility_status(TcorePending *p, dbg("Entry"); - res.type = (int)user_data; + res.type = GPOINTER_TO_INT(user_data); res.result = SIM_INCOMPATIBLE_PIN_OPERATION; if (resp && resp->success > 0) { @@ -772,7 +772,7 @@ static void on_response_enable_facility(TcorePending *p, int data_len, memset(&res, 0, sizeof(struct tresp_sim_enable_facility)); - res.type = (int)user_data; + res.type = GPOINTER_TO_INT(user_data); res.result = SIM_CARD_ERROR; if (resp && resp->success > 0) { @@ -831,7 +831,7 @@ static void on_response_disable_facility(TcorePending *p, int data_len, memset(&res, 0, sizeof(struct tresp_sim_disable_facility)); - res.type = (int)user_data; + res.type = GPOINTER_TO_INT(user_data); res.result = SIM_CARD_ERROR; if (resp && resp->success > 0) { @@ -1170,7 +1170,7 @@ static TReturn atd_get_facility_status(CoreObject *co_sim, UserRequest *ur) cmd_str, "+CLCK:", TCORE_AT_SINGLELINE, ur, - on_response_get_facility_status, (void *)req_data->type, + on_response_get_facility_status, GINT_TO_POINTER(req_data->type), NULL, NULL, 0, NULL, NULL); dbg("ret: [0x%x]", ret); @@ -1212,7 +1212,7 @@ static TReturn atd_enable_facility(CoreObject *co_sim, UserRequest *ur) cmd_str, "+CLCK:", TCORE_AT_SINGLELINE, ur, - on_response_enable_facility, (void *)req_data->type, + on_response_enable_facility, GINT_TO_POINTER(req_data->type), NULL, NULL, 0, NULL, NULL); dbg("ret: [0x%x]", ret); @@ -1254,7 +1254,7 @@ static TReturn atd_disable_facility(CoreObject *co_sim, UserRequest *ur) cmd_str, "+CLCK:", TCORE_AT_SINGLELINE, ur, - on_response_disable_facility, (void *)req_data->type, + on_response_disable_facility, GINT_TO_POINTER(req_data->type), NULL, NULL, 0, NULL, NULL); dbg("ret: [0x%x]", ret); -- 2.7.4