From 5969530dcf0c612dd3ba3cd57b5a3d9034f90316 Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez Date: Thu, 15 Mar 2012 11:34:03 -0300 Subject: [PATCH] Fix for compiler warning messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/genlib/net/http/httpreadwrite.c: In function ‘http_Download’: src/genlib/net/http/httpreadwrite.c:790:5: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘size_t’ src/genlib/net/http/httpreadwrite.c:790:5: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘size_t’ --- upnp/src/genlib/net/http/httpreadwrite.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/upnp/src/genlib/net/http/httpreadwrite.c b/upnp/src/genlib/net/http/httpreadwrite.c index bd43d0a..a0da821 100644 --- a/upnp/src/genlib/net/http/httpreadwrite.c +++ b/upnp/src/genlib/net/http/httpreadwrite.c @@ -786,8 +786,9 @@ int http_Download( IN const char *url_str, assert(*document != NULL); if (msg_length <= *doc_length || *document == NULL) UpnpPrintf(UPNP_INFO, HTTP, __FILE__, __LINE__, - "msg_length(%d) <= *doc_length(%d) or document" - " is NULL", msg_length, *doc_length); + "msg_length(%" PRIzu ") <= *doc_length(%" + PRIzu ") or document is NULL", + msg_length, *doc_length); } if (response.msg.status_code == HTTP_OK) { ret_code = 0; /* success */