aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/misc.c
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2011-10-24 18:40:10 +0200
committerSimon Busch <morphis@gravedo.de>2011-10-24 19:09:56 +0200
commitef01149ee7c199cb21e0b9f20378141b3ec271ea (patch)
tree52729e9b42e9e16161c126e51091d052bdecf9ff /samsung-ipc/misc.c
parentffc43da883c6c4905f27bb02986a1422ef492d92 (diff)
downloadhardware_replicant_libsamsung-ipc-ef01149ee7c199cb21e0b9f20378141b3ec271ea.tar.gz
hardware_replicant_libsamsung-ipc-ef01149ee7c199cb21e0b9f20378141b3ec271ea.tar.bz2
hardware_replicant_libsamsung-ipc-ef01149ee7c199cb21e0b9f20378141b3ec271ea.zip
Updates for retrieve imsi and rsim data from response messages
Signed-off-by: Simon Busch <morphis@gravedo.de>
Diffstat (limited to 'samsung-ipc/misc.c')
-rw-r--r--samsung-ipc/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/samsung-ipc/misc.c b/samsung-ipc/misc.c
index 0bca9c0..609d7b8 100644
--- a/samsung-ipc/misc.c
+++ b/samsung-ipc/misc.c
@@ -23,12 +23,12 @@
#define DEFAULT_IMSI_LENGTH 15
-char* ipc_parse_misc_me_imsi(uint8_t *data, unsigned int size)
+char* ipc_misc_me_imsi_response_get_imsi(struct ipc_response *response)
{
- if (data == NULL || size != DEFAULT_IMSI_LENGTH + 1 || data[0] != DEFAULT_IMSI_LENGTH)
+ if (response == NULL || response->data[0] != DEFAULT_IMSI_LENGTH)
return NULL;
char *buffer = (char*) malloc(sizeof(char) * DEFAULT_IMSI_LENGTH);
- memcpy(buffer, &data[1], DEFAULT_IMSI_LENGTH);
+ memcpy(buffer, &response->data[1], DEFAULT_IMSI_LENGTH);
return buffer;
}