aboutsummaryrefslogtreecommitdiff
path: root/src/tools/windows/converter_exe/http_download.cc
diff options
context:
space:
mode:
authorNelson Billing <nbilling@google.com>2019-06-27 12:47:45 -0700
committerNelson Billing <nbilling@google.com>2019-06-27 20:02:30 +0000
commita5a607b0b01c7022d7ccba282491c40da204cba2 (patch)
treefa16ad8029386fce5b7dea3906fac0f5367bb229 /src/tools/windows/converter_exe/http_download.cc
parentFix windows symbol converter blacklisting. (diff)
downloadbreakpad-a5a607b0b01c7022d7ccba282491c40da204cba2.tar.xz
Fix clang build warnings/errors for windows symbol converter.
Change-Id: Ib7f6e37af1466b5bed3e7d2921e0d9774394ad1e Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1680056 Reviewed-by: Mark Mentovai <mark@chromium.org>
Diffstat (limited to 'src/tools/windows/converter_exe/http_download.cc')
-rw-r--r--src/tools/windows/converter_exe/http_download.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tools/windows/converter_exe/http_download.cc b/src/tools/windows/converter_exe/http_download.cc
index b037662f..5afc1ccc 100644
--- a/src/tools/windows/converter_exe/http_download.cc
+++ b/src/tools/windows/converter_exe/http_download.cc
@@ -170,7 +170,7 @@ bool HTTPDownload::Download(const wstring &url,
sizeof(path)/sizeof(path[0]),
&port)) {
fprintf(stderr,
- "HTTPDownload::Download: InternetCrackUrl: error %d for %ws\n",
+ "HTTPDownload::Download: InternetCrackUrl: error %lu for %ws\n",
GetLastError(), url.c_str());
return false;
}
@@ -192,7 +192,7 @@ bool HTTPDownload::Download(const wstring &url,
NULL, // proxy bypass
internet.get_handle_addr())) {
fprintf(stderr,
- "HTTPDownload::Download: Open: error %d for %ws\n",
+ "HTTPDownload::Download: Open: error %lu for %ws\n",
GetLastError(), url.c_str());
return false;
}
@@ -203,7 +203,7 @@ bool HTTPDownload::Download(const wstring &url,
port,
connection.get_handle_addr())) {
fprintf(stderr,
- "HTTPDownload::Download: InternetConnect: error %d for %ws\n",
+ "HTTPDownload::Download: InternetConnect: error %lu for %ws\n",
GetLastError(), url.c_str());
return false;
}
@@ -239,21 +239,21 @@ bool HTTPDownload::Download(const wstring &url,
secure,
request.get_handle_addr())) {
fprintf(stderr,
- "HttpClient::OpenRequest: error %d for %ws, request: %ws\n",
+ "HttpClient::OpenRequest: error %lu for %ws, request: %ws\n",
GetLastError(), url.c_str(), request_string.c_str());
return false;
}
if (!http_client->SendRequest(request.get(), NULL, 0)) {
fprintf(stderr,
- "HttpClient::SendRequest: error %d for %ws\n",
+ "HttpClient::SendRequest: error %lu for %ws\n",
GetLastError(), url.c_str());
return false;
}
if (!http_client->ReceiveResponse(request.get())) {
fprintf(stderr,
- "HttpClient::ReceiveResponse: error %d for %ws\n",
+ "HttpClient::ReceiveResponse: error %lu for %ws\n",
GetLastError(), url.c_str());
return false;
}
@@ -261,7 +261,7 @@ bool HTTPDownload::Download(const wstring &url,
int http_status = 0;
if (!http_client->GetHttpStatusCode(request.get(), &http_status)) {
fprintf(stderr,
- "HttpClient::GetHttpStatusCode: error %d for %ws\n",
+ "HttpClient::GetHttpStatusCode: error %lu for %ws\n",
GetLastError(), url.c_str());
return false;
}
@@ -304,13 +304,13 @@ bool HTTPDownload::Download(const wstring &url,
if (!read_result) {
fprintf(stderr,
- "HttpClient::ReadData: error %d for %ws\n",
+ "HttpClient::ReadData: error %lu for %ws\n",
GetLastError(),
url.c_str());
return false;
} else if (size_read != 0) {
fprintf(stderr,
- "HttpClient::ReadData: error %d/%d for %ws\n",
+ "HttpClient::ReadData: error %lu/%lu for %ws\n",
total_read,
content_length,
url.c_str());