aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/libcommon/source/card_emu.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-10 22:51:30 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-10 23:20:50 +0200
commitb91f6ad8481bf0a2fe54467e5930e1735a8f3b6b (patch)
treee92ce19412b9306675a79a076682ba246eef8864 /firmware/libcommon/source/card_emu.c
parent9f38dddfccbbfc731e3430bf1865d999256a2e31 (diff)
firmware: fix various compiler warnings
Diffstat (limited to 'firmware/libcommon/source/card_emu.c')
-rw-r--r--firmware/libcommon/source/card_emu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/libcommon/source/card_emu.c b/firmware/libcommon/source/card_emu.c
index ed3aa99..98b08d7 100644
--- a/firmware/libcommon/source/card_emu.c
+++ b/firmware/libcommon/source/card_emu.c
@@ -165,7 +165,7 @@ static void set_pts_state(struct card_handle *ch, enum pts_state new_ptss);
/* update simtrace header msg_len and submit USB buffer */
void usb_buf_upd_len_and_submit(struct msgb *msg)
{
- struct simtrace_msg_hdr *sh = msg->l1h;
+ struct simtrace_msg_hdr *sh = (struct simtrace_msg_hdr *) msg->l1h;
sh->msg_len = msgb_length(msg);