aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-08-01 21:38:07 +0200
committerJan200101 <sentrycraft123@gmail.com>2020-08-01 21:38:07 +0200
commitc11dd0eae09df4982459a34d764910d0501f2ae2 (patch)
tree940934202f436d67f94728c0704a19ac62f5c299 /src/net.h
parent1db300d8815b5f997dd6f992e4ca416537018c2f (diff)
downloadpolecat-c11dd0eae09df4982459a34d764910d0501f2ae2.tar.gz
polecat-c11dd0eae09df4982459a34d764910d0501f2ae2.zip
Improve code structure […]
- create a dedicated "usage" macro to reuse - add various checks in the case no memory is available - fix cwd fetching check - correctly free json_objects to remove all existing leaks
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 2b203fa..1ad4f90 100644
--- a/src/net.h
+++ b/src/net.h
@@ -4,7 +4,7 @@
#include <json.h>
size_t WriteMemoryCallback(void*, size_t, size_t, void*);
-int downloadFile(const char*, const char*);
+void downloadFile(const char*, const char*);
struct json_object* fetchJSON(const char*);
#endif \ No newline at end of file