Er, int not bool
This commit is contained in:
parent
48518fc076
commit
7b435df95d
@ -257,7 +257,7 @@ std::optional<std::string> launchpad::api_get(const std::string& endpoint, const
|
|||||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
|
||||||
|
|
||||||
bool tries = 0;
|
int tries = 0;
|
||||||
long http_code = 0;
|
long http_code = 0;
|
||||||
|
|
||||||
while (tries < 5) {
|
while (tries < 5) {
|
||||||
@ -334,7 +334,7 @@ std::optional<std::string> launchpad::api_post(
|
|||||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
|
||||||
|
|
||||||
bool tries = 0;
|
int tries = 0;
|
||||||
long http_code = 0;
|
long http_code = 0;
|
||||||
|
|
||||||
while (tries < 5) {
|
while (tries < 5) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user