Received: from eggs.gnu.org ([2001:4830:134:3::10]:60199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGYz9-0005Nl-ON for qemu-devel@nongnu.org; Thu, 20 Feb 2014 14:08:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGYz7-0001Jq-RQ for qemu-devel@nongnu.org; Thu, 20 Feb 2014 14:08:39 -0500 From: Stefan Weil Date: Thu, 20 Feb 2014 20:08:31 +0100 Message-Id: <1392923311-14194-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] stubs: Optimize dependencies for gdbstub.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-trivial@nongnu.org Cc: Stefan Weil , qemu-devel@nongnu.org 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 --- stubs/gdbstub.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- 1.7.10.4