Fix warnings in http_upload.cc with GCC

The context arguments are of type DWORD_PTR which is actually a
integer type, not a pointer, so using NULL here causes a type
missmatch warning:

  error: passing NULL to non-pointer argument 8 [...]
Change-Id: Ia52f51fd0cd33af3b139f0427dec6c59c2455d0a
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3168663
Reviewed-by: Primiano Tucci <primiano@chromium.org>
This commit is contained in:
Marvin Scholz 2021-09-21 03:03:04 +02:00 committed by Primiano Tucci
parent ff5892c5da
commit cf6246e2ba

View file

@ -262,7 +262,7 @@ namespace {
NULL, // password NULL, // password
INTERNET_SERVICE_HTTP, INTERNET_SERVICE_HTTP,
0, // flags 0, // flags
NULL)); // context 0)); // context
if (!connection.get()) { if (!connection.get()) {
return false; return false;
} }
@ -276,7 +276,7 @@ namespace {
NULL, // referer NULL, // referer
NULL, // agent type NULL, // agent type
http_open_flags, http_open_flags,
NULL)); // context 0)); // context
if (!request.get()) { if (!request.get()) {
return false; return false;
} }