aboutsummaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/client.c b/client.c
index 8d4635f..e3e1526 100644
--- a/client.c
+++ b/client.c
@@ -550,30 +550,6 @@ int connect_to_service(const char *sockpath)
return fd;
}
-void *load_file(const char *path, size_t *len)
-{
- if(!path)
- return NULL;
-
- FILE *f = fopen(path, "r");
- fseek(f, 0, SEEK_END);
- *len = ftell(f);
- fseek(f, 0, SEEK_SET);
- void *buf = malloc(*len);
- fread(buf, 1, *len, f);
- return buf;
-}
-
-void write_file(const char *path, const void *contents, size_t len)
-{
- if(contents)
- {
- FILE *f = fopen(path, "w");
- fwrite(contents, 1, len, f);
- fclose(f);
- }
-}
-
bool server_request(const char *sockpath,
const char *user_key, uint64_t user_id,
struct user_request req,