Fix 64bit build error 69/219569/1
authorsinikang <sinikang@samsung.com>
Fri, 6 Dec 2019 06:11:51 +0000 (15:11 +0900)
committersinikang <sinikang@samsung.com>
Fri, 6 Dec 2019 06:11:51 +0000 (15:11 +0900)
Change-Id: I74358bf8b851dea798dd1068fa5369d6c38af50a
Signed-off-by: sinikang <sinikang@samsung.com>
packaging/tel-plugin-atdongle.spec
src/atd_sim.c

index 3997a9e..25d7152 100644 (file)
@@ -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
index 95d4aa4..7ddf495 100644 (file)
@@ -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);