Fix a printf format compiler warning

... which shows up as an error because of -Werror.
This commit is contained in:
Kalev Lember 2013-03-20 19:07:59 +01:00
parent 5ff08808c0
commit 910d475814
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
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

View File

@ -11,6 +11,7 @@ Summary: Soup, an HTTP library implementation
URL: http://live.gnome.org/LibSoup
#VCS: git:git://git.gnome.org/libsoup
Source: http://download.gnome.org/sources/libsoup/2.41/libsoup-%{version}.tar.xz
Patch0: libsoup-2.41.92-printf.patch
Requires: glib-networking >= %{glib2_version}
### Build Dependencies ###
@ -47,6 +48,7 @@ you to develop applications that use the libsoup library.
%prep
%setup -q
%patch0 -p1 -b .printf
%build
%configure --disable-static