Silence warning: initialization from incompatible pointer type

This commit is contained in:
Peter Stuge authored and Harald Welte committed 2011-08-15 10:31:54 +02:00
1 parent 0060806497
commit 7b76e0ce7c
1 file changed
+1 -1
+1 -1
View File
@@ -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);