diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2014-02-24 15:31:28 +0100 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-02-24 15:31:28 +0100 |
commit | c97e7854a28a27a4f7fba19f42957bfbbc28abcd (patch) | |
tree | 46c3acb134006ddc8aa71e08005c2ca0834785e3 | |
parent | 738b07dfd6ef709e0802a33ab3d66fdf22d3a68a (diff) | |
download | external_libsamsung-ipc-c97e7854a28a27a4f7fba19f42957bfbbc28abcd.zip external_libsamsung-ipc-c97e7854a28a27a4f7fba19f42957bfbbc28abcd.tar.gz external_libsamsung-ipc-c97e7854a28a27a4f7fba19f42957bfbbc28abcd.tar.bz2 |
ipc_utils: Correct enumaration for headers
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r-- | samsung-ipc/ipc_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samsung-ipc/ipc_utils.c b/samsung-ipc/ipc_utils.c index 5393453..d6c9651 100644 --- a/samsung-ipc/ipc_utils.c +++ b/samsung-ipc/ipc_utils.c @@ -472,12 +472,12 @@ int ipc_fmt_header_setup(struct ipc_fmt_header *header, return -1; memset(header, 0, sizeof(struct ipc_fmt_header)); + header->length = message->size + sizeof(struct ipc_fmt_header); header->mseq = message->mseq; header->aseq = message->aseq; header->group = IPC_GROUP(message->command); header->index = IPC_INDEX(message->command); header->type = message->type; - header->length = message->size + sizeof(struct ipc_fmt_header); return 0; } @@ -506,9 +506,9 @@ int ipc_rfs_header_setup(struct ipc_rfs_header *header, return -1; memset(header, 0, sizeof(struct ipc_rfs_header)); + header->length = message->size + sizeof(struct ipc_rfs_header); header->id = message->mseq; header->index = IPC_INDEX(message->command); - header->length = message->size + sizeof(struct ipc_rfs_header); return 0; } |