diff mbox

stubs: Optimize dependencies for gdbstub.c

Message ID 1392923311-14194-1-git-send-email-sw@weilnetz.de
State Accepted
Headers show

Commit Message

Stefan Weil Feb. 20, 2014, 7:08 p.m. UTC
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>
---
 stubs/gdbstub.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Michael Tokarev March 2, 2014, 1:14 p.m. UTC | #1
20.02.2014 23:08, Stefan Weil wrote:
> 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.

Applied to -trivial, thanks!

/mjt
diff mbox

Patch

diff --git a/stubs/gdbstub.c b/stubs/gdbstub.c
index c1dbfe7..f6a4553 100644
--- a/stubs/gdbstub.c
+++ b/stubs/gdbstub.c
@@ -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 }