aboutsummaryrefslogtreecommitdiff
path: root/src/net.c
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-08-10 12:43:26 +0200
committerJan200101 <sentrycraft123@gmail.com>2020-08-10 12:43:26 +0200
commit1753e2b151cbb4af75a4e9ea61720b3704b03805 (patch)
tree6265e9829a6d6b76ddae13de2138ef8f1c657ccd /src/net.c
parentc11dd0eae09df4982459a34d764910d0501f2ae2 (diff)
downloadpolecat-1753e2b151cbb4af75a4e9ea61720b3704b03805.tar.gz
polecat-1753e2b151cbb4af75a4e9ea61720b3704b03805.zip
a lot of changes […]0.1.3
- go to next entry of argv and decrement argc the deeper it goes - add basic lutris functionality - remove "help" from help message and as a command - replace all stderr prints with stdout prints (usually stderr is better for directly informing the user but in this case I don't think it will help much) - add libarchive dependency to the README - bump version number
Diffstat (limited to 'src/net.c')
-rw-r--r--src/net.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net.c b/src/net.c
index a1c574a..a23f772 100644
--- a/src/net.c
+++ b/src/net.c
@@ -56,13 +56,12 @@ struct MemoryStruct* downloadToRam(const char* URL)
curl_easy_getinfo (curl_handle, CURLINFO_RESPONSE_CODE, &http_code);
if(res != CURLE_OK) {
- fprintf(stderr, "curl_easy_perform() failed: %s\n",
- curl_easy_strerror(res));
+ printf("libcurl error: %s\n", curl_easy_strerror(res));
return NULL;
}
else if (http_code != 200)
{
- fprintf(stderr, "Server didn't respond as expected [HTTP Error %li]\n", http_code);
+ printf("HTTP Error %li\n", http_code);
return NULL;
}