28 lines
996 B
Diff
28 lines
996 B
Diff
From 096eed1a810f8c09c6e646adaeee248ed914595a Mon Sep 17 00:00:00 2001
|
|
From: Kalev Lember <kalevlember@gmail.com>
|
|
Date: Wed, 20 Mar 2013 17:33:35 +0100
|
|
Subject: [PATCH] requester-test: fix a printf format compiler warning
|
|
|
|
Could use G_GSIZE_FORMAT here, but casting to gulong is simpler.
|
|
---
|
|
tests/requester-test.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/requester-test.c b/tests/requester-test.c
|
|
index 147ba4c..6e169ad 100644
|
|
--- a/tests/requester-test.c
|
|
+++ b/tests/requester-test.c
|
|
@@ -691,7 +691,8 @@ do_null_char_request (SoupSession *session, const char *encoded_data,
|
|
}
|
|
|
|
if (nread != expected_len) {
|
|
- debug_printf (1, " response length mismatch: expected %d, got %lu\n", expected_len, nread);
|
|
+ debug_printf (1, " response length mismatch: expected %d, got %lu\n",
|
|
+ expected_len, (gulong)nread);
|
|
errors++;
|
|
} else if (memcmp (buf, expected_data, nread) != 0) {
|
|
debug_printf (1, " response data mismatch\n");
|
|
--
|
|
1.8.1.4
|
|
|