projects
/
platform
/
upstream
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c74becf
)
Include string.h and fix warning in trap-test.c
author
Søren Sandmann Pedersen
<sandmann@redhat.com>
Wed, 29 Apr 2009 02:49:31 +0000
(22:49 -0400)
committer
Søren Sandmann Pedersen
<sandmann@redhat.com>
Wed, 29 Apr 2009 02:49:31 +0000
(22:49 -0400)
test/trap-test.c
patch
|
blob
|
history
diff --git
a/test/trap-test.c
b/test/trap-test.c
index
7750e5a
..
adf796d
100644
(file)
--- a/
test/trap-test.c
+++ b/
test/trap-test.c
@@
-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;