Fix for compiler warning messages

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’
(cherry picked from commit 5969530dcf0c612dd3ba3cd57b5a3d9034f90316)
This commit is contained in:
Marcelo Roberto Jimenez 2012-03-15 11:34:03 -03:00
parent a3d038c885
commit c9f3e26f24

View File

@ -726,8 +726,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 */