kdd: stop using [0] arrays to access packet contents
authorTim Deegan <tim@xen.org>
Fri, 26 Jun 2020 10:40:44 +0000 (10:40 +0000)
committerWei Liu <wl@xen.org>
Fri, 26 Jun 2020 10:41:33 +0000 (10:41 +0000)
commit3471cafbdda35eacf04670881dd2aee2558b4f08
tree5ff81f4d4b6e8b8bede9c6a82d06b56c981c9d21
parentf91d103e74d4c2efa60fb42b6e9d530a92838f8e
kdd: stop using [0] arrays to access packet contents

GCC 10 is unhappy about this, and we already use 64k buffers
in the only places where packets are allocated, so move the
64k size into the packet definition.

Reported-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Wei Liu <wl@xen.org>
Release-acked-by: Paul Durrant <paul@xen.org>
tools/debugger/kdd/kdd.c
tools/debugger/kdd/kdd.h