From 7b76e0ce7c622dff014df0754c9af6993242d340 Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Sat, 13 Aug 2011 21:15:03 +0200 Subject: [PATCH] Silence warning: initialization from incompatible pointer type --- host/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/main.c b/host/main.c index 1823857..8e63448 100644 --- a/host/main.c +++ b/host/main.c @@ -84,7 +84,7 @@ static void apdu_out_cb(uint8_t *buf, unsigned int len, void *user_data) static int process_usb_msg(uint8_t *buf, int len) { - struct simtrace_hdr *sh = buf; + struct simtrace_hdr *sh = (struct simtrace_hdr *)buf; uint8_t *payload = buf += sizeof(*sh); int payload_len = len - sizeof(*sh);