summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2014-01-30 18:49:23 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2014-02-07 13:55:57 +0100
commit0eaf4920973507d11a347a278b4b7fd90a974805 (patch)
tree062cf212acd99d116b3933504d4cd7c478954b87 /tests
parent7b463a718c4a784b927d474039ada6375615932d (diff)
test: fix a few compiler warnings
util.c: In function 'test_set_bit': util.c:131:13: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
Diffstat (limited to 'tests')
-rw-r--r--tests/util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/util.c b/tests/util.c
index 922818a..ecd83eb 100644
--- a/tests/util.c
+++ b/tests/util.c
@@ -81,9 +81,9 @@ static void test_unix2dos(void)
static const struct {
unsigned width;
unsigned height;
- guint8 *and;
- guint8 *xor;
- guint8 *dest;
+ gchar *and;
+ gchar *xor;
+ gchar *dest;
} mono[] = {
{
8, 6,
@@ -123,8 +123,8 @@ static void test_set_bit(void)
{
struct {
unsigned len;
- guint8 *src;
- guint8 *dest;
+ gchar *src;
+ gchar *dest;
} tests[] = {
{
4,
@@ -140,7 +140,7 @@ static void test_set_bit(void)
int i, j, bit;
guint8 *dest;
int bytes;
-
+
for (i = 0 ; i < G_N_ELEMENTS(tests); ++i) {
bytes = (tests[i].len + 7) / 8;
dest = g_malloc0(bytes);