From: Wei Liu Date: Fri, 3 Jul 2020 20:10:01 +0000 (+0000) Subject: kdd: fix build again X-Git-Tag: 4.14.0-rc6~18 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d44cbbe0f3243afcc56e47dcfa97bbfe23e46fbb;p=people%2Fjgross%2Fxen.git kdd: fix build again Restore Tim's patch. The one that was committed was recreated by me because git didn't accept my saved copy. I made some mistakes while recreating that patch and here we are. Fixes: 3471cafbdda3 ("kdd: stop using [0] arrays to access packet contents") Reported-by: Michael Young Signed-off-by: Wei Liu Reviewed-by: Tim Deegan Release-acked-by: Paul Durrant --- diff --git a/tools/debugger/kdd/kdd.c b/tools/debugger/kdd/kdd.c index 866532f0c7..a7d0976ea4 100644 --- a/tools/debugger/kdd/kdd.c +++ b/tools/debugger/kdd/kdd.c @@ -79,11 +79,11 @@ typedef struct { /* State of the debugger stub */ typedef struct { union { - uint8_t txb[sizeof (kdd_hdr)]; /* Marshalling area for tx */ + uint8_t txb[sizeof (kdd_pkt)]; /* Marshalling area for tx */ kdd_pkt txp; /* Also readable as a packet structure */ }; union { - uint8_t rxb[sizeof (kdd_hdr)]; /* Marshalling area for rx */ + uint8_t rxb[sizeof (kdd_pkt)]; /* Marshalling area for rx */ kdd_pkt rxp; /* Also readable as a packet structure */ }; unsigned int cur; /* Offset into rx where we'll put the next byte */