Skip to content

Commit

Permalink
kdd: fix build again
Browse files Browse the repository at this point in the history
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: 3471caf ("kdd: stop using [0] arrays to access packet contents")
Reported-by: Michael Young <m.a.young@durham.ac.uk>
Signed-off-by: Wei Liu <wl@xen.org>
Reviewed-by: Tim Deegan <tim@xen.org>
Release-acked-by: Paul Durrant <paul@xen.org>
(cherry picked from commit d44cbbe)
  • Loading branch information
liuw authored and ijackson-citrix committed Nov 9, 2020
1 parent a92f935 commit 971a9d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/debugger/kdd/kdd.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,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 */
Expand Down

0 comments on commit 971a9d1

Please sign in to comment.