mirror of
https://gitea.osmocom.org/sim-card/simtrace.git
synced 2026-03-16 21:28:36 +03:00
Silence warning: initialization from incompatible pointer type
This commit is contained in:
committed by
Harald Welte
parent
0060806497
commit
7b76e0ce7c
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user