Patchwork [03/13] ui/vnc-palette.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-4-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/204194/
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 memset()

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>
---
 ui/vnc-palette.c |    2 ++
 1 Datei geändert, 2 Zeilen hinzugefügt(+)

Patch

diff --git a/ui/vnc-palette.c b/ui/vnc-palette.c
index 63d5f64..c130dee 100644
--- a/ui/vnc-palette.c
+++ b/ui/vnc-palette.c
@@ -27,6 +27,8 @@ 
  */
 
 #include "vnc-palette.h"
+#include <glib.h>
+#include <string.h>
 
 static VncPaletteEntry *palette_find(const VncPalette *palette,
                                      uint32_t color, unsigned int hash)