[PATCH 2/3] Silence warning: initialization from incompatible pointer type

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/simtrace@lists.osmocom.org/.

Peter Stuge peter at stuge.se
Sat Aug 13 19:15:03 UTC 2011


---
 host/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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);
 
-- 
1.7.4.1.343.ga91df.dirty





More information about the simtrace mailing list