diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-07-06 01:34:27 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-07-06 23:18:09 +0200 |
commit | 1127bbb3756fe6909d166938ea4e5a5f12be1f52 (patch) | |
tree | 4307232bef69c2252d2f82869a4d8744350d2e2f | |
parent | 814b55e6232b65978863db7c9d649cfec9f6d3d1 (diff) | |
download | hardware_replicant_libsamsung-ril-1127bbb3756fe6909d166938ea4e5a5f12be1f52.tar.gz hardware_replicant_libsamsung-ril-1127bbb3756fe6909d166938ea4e5a5f12be1f52.tar.bz2 hardware_replicant_libsamsung-ril-1127bbb3756fe6909d166938ea4e5a5f12be1f52.zip |
Adjust to libsamsung-ipc ipc_sec_lock_infomation_response_data typo fix
In libsamsung-ipc, ipc_sec_lock_infomation_response_data was changed to
ipc_sec_lock_information_response_data as the former seems to be a typo.
This change was made by the following libsamsung-ipc commit:
cae58ae626f4dad678567e03dcfa247e05f69ddc
cae58ae Fix ipc_sec_lock_infomation_response_data typo
As ipc_sec_lock_infomation_response_data was used in libsamsung-ril too, we
need to do the change here too, as otherwise we will end with compilation
errors like that while compiling Replicant 6.0:
hardware/replicant/libsamsung-ril/sim.c:
In function 'ipc_sec_lock_infomation':
hardware/replicant/libsamsung-ril/sim.c:1174:73:
error: invalid application of 'sizeof' to incomplete type
'struct ipc_sec_lock_infomation_response_data'
if (message == NULL || message->data == NULL || message->size <
sizeof(struct ipc_sec_lock_infomation_response_data))
^
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Acked-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
-rw-r--r-- | sim.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1161,7 +1161,7 @@ int ipc_sec_sim_icc_type(struct ipc_message *message) int ipc_sec_lock_infomation(struct ipc_message *message) { - struct ipc_sec_lock_infomation_response_data *data; + struct ipc_sec_lock_information_response_data *data; struct ipc_gen_phone_res_data *gen_phone_res; int requests[] = { RIL_REQUEST_ENTER_SIM_PIN, RIL_REQUEST_CHANGE_SIM_PIN, RIL_REQUEST_ENTER_SIM_PIN2, RIL_REQUEST_CHANGE_SIM_PIN2, RIL_REQUEST_SET_FACILITY_LOCK }; void *gen_phone_res_data = NULL; @@ -1171,7 +1171,7 @@ int ipc_sec_lock_infomation(struct ipc_message *message) unsigned int i; int rc; - if (message == NULL || message->data == NULL || message->size < sizeof(struct ipc_sec_lock_infomation_response_data)) + if (message == NULL || message->data == NULL || message->size < sizeof(struct ipc_sec_lock_information_response_data)) return -1; rc = ril_radio_state_check(RADIO_STATE_SIM_NOT_READY); @@ -1181,7 +1181,7 @@ int ipc_sec_lock_infomation(struct ipc_message *message) if (message->type != IPC_TYPE_RESP || !ipc_seq_valid(message->aseq)) return 0; - data = (struct ipc_sec_lock_infomation_response_data *) message->data; + data = (struct ipc_sec_lock_information_response_data *) message->data; if (data->type != IPC_SEC_PIN_TYPE_PIN1 && data->type != IPC_SEC_PIN_TYPE_PIN2) return 0; |