From c882260d4b481283c3d59385bfa31bfeffc0a58f Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Tue, 28 Apr 2009 22:49:31 -0400 Subject: [PATCH] Include string.h and fix warning in trap-test.c --- test/trap-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/trap-test.c b/test/trap-test.c index 7750e5a..adf796d 100644 --- a/test/trap-test.c +++ b/test/trap-test.c @@ -1,6 +1,7 @@ #include #include #include +#include #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; -- 2.7.4