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’
This commit is contained in:
Marcelo Roberto Jimenez 2012-03-15 11:34:03 -03:00
parent b9944242cf
commit 5969530dcf

View File

@ -786,8 +786,9 @@ int http_Download( IN const char *url_str,
assert(*document != NULL); assert(*document != NULL);
if (msg_length <= *doc_length || *document == NULL) if (msg_length <= *doc_length || *document == NULL)
UpnpPrintf(UPNP_INFO, HTTP, __FILE__, __LINE__, UpnpPrintf(UPNP_INFO, HTTP, __FILE__, __LINE__,
"msg_length(%d) <= *doc_length(%d) or document" "msg_length(%" PRIzu ") <= *doc_length(%"
" is NULL", msg_length, *doc_length); PRIzu ") or document is NULL",
msg_length, *doc_length);
} }
if (response.msg.status_code == HTTP_OK) { if (response.msg.status_code == HTTP_OK) {
ret_code = 0; /* success */ ret_code = 0; /* success */