Include string.h and fix warning in trap-test.c
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Wed, 29 Apr 2009 02:49:31 +0000 (22:49 -0400)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Wed, 29 Apr 2009 02:49:31 +0000 (22:49 -0400)
test/trap-test.c

index 7750e5a..adf796d 100644 (file)
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <gtk/gtk.h>
+#include <string.h>
 #include "pixman.h"
 
 GdkPixbuf *
@@ -21,7 +22,7 @@ pixbuf_from_argb32 (uint32_t *bits,
        {
            uint32_t argb = bits[h * stride + w];
            guint r, g, b, a;
-           char *pb = p_bits;
+           char *pb = (char *)p_bits;
 
            pb += h * p_stride + w * 4;