Skip to content

Commit

Permalink
Update download.c
Browse files Browse the repository at this point in the history
Added a line to silence new warnings from a custom Makefile I made for debugging purposes.
  • Loading branch information
mephistolist authored Oct 29, 2024
1 parent 681934e commit 5f937cd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/download.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
#include "libspm.h"
#include "cutils.h"

int download(char* url, FILE* fp)
{
int download(char* url, FILE* fp) {
CURL *curl = curl_easy_init();
if(curl)
{
if(curl) {
CURLcode res;
(void) res;
curl_easy_setopt(curl, CURLOPT_USERAGENT, "CCCP/1.0 (https://www.sovietlinux.org/)");
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(curl, CURLOPT_URL, url);
Expand All @@ -26,4 +25,4 @@ int download(char* url, FILE* fp)
curl_easy_cleanup(curl);
}
return 0;
}
}

0 comments on commit 5f937cd

Please sign in to comment.