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) {
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) {
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) {
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);
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);
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);