diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2014-02-06 20:26:30 +0100 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-02-06 20:26:30 +0100 |
commit | 0b3a6b4838e4ba55c79387bf7314e6dffb33bf42 (patch) | |
tree | 66988f78393b8e83974f4798ef095cde3b32eb99 /samsung-ipc/sms.c | |
parent | b2aaec58195f8ce135ba7debcef148998b8a3e71 (diff) | |
download | external_libsamsung-ipc-0b3a6b4838e4ba55c79387bf7314e6dffb33bf42.zip external_libsamsung-ipc-0b3a6b4838e4ba55c79387bf7314e6dffb33bf42.tar.gz external_libsamsung-ipc-0b3a6b4838e4ba55c79387bf7314e6dffb33bf42.tar.bz2 |
Follow consistent coding style in headers
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc/sms.c')
-rw-r--r-- | samsung-ipc/sms.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samsung-ipc/sms.c b/samsung-ipc/sms.c index d837881..047754e 100644 --- a/samsung-ipc/sms.c +++ b/samsung-ipc/sms.c @@ -22,7 +22,7 @@ #include <samsung-ipc.h> -unsigned char *ipc_sms_send_msg_pack(struct ipc_sms_send_msg_request *msg, char *smsc, +unsigned char *ipc_sms_send_msg_pack(struct ipc_sms_send_msg_request_header *msg, char *smsc, unsigned char *pdu, int pdu_length) { unsigned char *data = NULL, *p = NULL; @@ -32,13 +32,13 @@ unsigned char *ipc_sms_send_msg_pack(struct ipc_sms_send_msg_request *msg, char return NULL; smsc_len = strlen(smsc); - data_length = smsc_len + pdu_length + sizeof(struct ipc_sms_send_msg_request); + data_length = smsc_len + pdu_length + sizeof(struct ipc_sms_send_msg_request_header); data = (unsigned char *) malloc(sizeof(unsigned char) * data_length); memset(data, 0, data_length); p = data; - memcpy(p, msg, sizeof(struct ipc_sms_send_msg_request)); - p += sizeof(struct ipc_sms_send_msg_request); + memcpy(p, msg, sizeof(struct ipc_sms_send_msg_request_header)); + p += sizeof(struct ipc_sms_send_msg_request_header); memcpy(p, (char *) (smsc + 1), smsc_len); p += smsc_len; memcpy(p, pdu, pdu_length); |