OSDN Git Service

stubs: Optimize dependencies for gdbstub.c
authorStefan Weil <sw@weilnetz.de>
Thu, 20 Feb 2014 19:08:31 +0000 (20:08 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 2 Mar 2014 13:13:31 +0000 (17:13 +0400)
It does not need qemu-common.h. Including exec/gdbstub.h fixes a warning
from static code analyzers and avoids mismatching declarations for
xml_builtin.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
stubs/gdbstub.c

index c1dbfe7..f6a4553 100644 (file)
@@ -1,4 +1,6 @@
-#include "qemu-common.h"
+#include "stdbool.h"            /* bool (in exec/gdbstub.h) */
+#include "stddef.h"             /* NULL */
+#include "exec/gdbstub.h"       /* xml_builtin */
 
 const char *const xml_builtin[][2] = {
   { NULL, NULL }