Silence warning: initialization from incompatible pointer type

This commit is contained in:
Peter Stuge 2011-08-13 21:15:03 +02:00 committed by Harald Welte
parent 0060806497
commit 7b76e0ce7c
1 changed files with 1 additions and 1 deletions

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);