Update return values

This commit is contained in:
Ralph 2022-11-14 16:24:24 -05:00 committed by GitHub
parent a7c81e2251
commit 274ad9733e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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, ...)