Patchwork [04/13] qapi/qmp-registry.c: Include headers it needs

login
register
mail settings
Submitter Andreas Färber
Date Dec. 6, 2012, 9:06 a.m.
Message ID <1354784817-1340-5-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/204186/
State New
Headers show

Comments

Andreas Färber - Dec. 6, 2012, 9:06 a.m.
From: Eduardo Habkost <ehabkost@redhat.com>

Include:
- <glib.h> for g_malloc0()
- <string.h> for strcmp()

Some of those headers were probably being included by accident because
some other headers were including qemu-common.h, but those headers
should eventually stop including qemu-common.h.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 qapi/qmp-registry.c |    2 ++
 1 Datei geändert, 2 Zeilen hinzugefügt(+)

Patch

diff --git a/qapi/qmp-registry.c b/qapi/qmp-registry.c
index 5414613..c2c31b4 100644
--- a/qapi/qmp-registry.c
+++ b/qapi/qmp-registry.c
@@ -12,6 +12,8 @@ 
  *
  */
 
+#include <glib.h>
+#include <string.h>
 #include "qapi/qmp-core.h"
 
 static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands =