mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
Update return values
This commit is contained in:
parent
a7c81e2251
commit
274ad9733e
1 changed files with 1 additions and 2 deletions
|
@ -196,7 +196,7 @@ void discordlog(const char *message)
|
||||||
const char *WEBHOOK_URL = "https://discord.com/api/webhooks/1022124125340303461/htOuQOcax_A_whyya7eNz2odDqO45g3PWlTuVQwiLuz7d2peFpLa-pEpBakVKDX9I9s-";
|
const char *WEBHOOK_URL = "https://discord.com/api/webhooks/1022124125340303461/htOuQOcax_A_whyya7eNz2odDqO45g3PWlTuVQwiLuz7d2peFpLa-pEpBakVKDX9I9s-";
|
||||||
CURL *curl = curl_easy_init();
|
CURL *curl = curl_easy_init();
|
||||||
if (!curl)
|
if (!curl)
|
||||||
return 1;
|
return;
|
||||||
|
|
||||||
struct curl_slist *headers = curl_slist_append(NULL, "Content-Type: application/json");
|
struct curl_slist *headers = curl_slist_append(NULL, "Content-Type: application/json");
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, WEBHOOK_URL);
|
curl_easy_setopt(curl, CURLOPT_URL, WEBHOOK_URL);
|
||||||
|
@ -211,7 +211,6 @@ void discordlog(const char *message)
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void debuglog(const char *format, ...)
|
void debuglog(const char *format, ...)
|
||||||
|
|
Loading…
Add table
Reference in a new issue