diff options
author | Stefan Weil <sw@weilnetz.de> | 2014-02-20 20:08:31 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-03-02 17:13:31 +0400 |
commit | 8ead6018837f13f1ef4a40c3eb5054512c160577 (patch) | |
tree | a24bede7ecf4f93bd450fb9460499c1c3b7594f9 /stubs | |
parent | c5d3c49896582bb338e19149b23d3613510059fb (diff) | |
download | qemu-8ead6018837f13f1ef4a40c3eb5054512c160577.tar.gz qemu-8ead6018837f13f1ef4a40c3eb5054512c160577.tar.bz2 qemu-8ead6018837f13f1ef4a40c3eb5054512c160577.zip |
stubs: Optimize dependencies for gdbstub.c
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>
Diffstat (limited to 'stubs')
-rw-r--r-- | stubs/gdbstub.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stubs/gdbstub.c b/stubs/gdbstub.c index c1dbfe7fb7..f6a4553a31 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 } |