summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ifuse.c')
-rw-r--r--src/ifuse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index 9fc1ad8..aa06070 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -65,7 +65,7 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) {
65static int ifuse_readdir(const char *path, void *buf, fuse_fill_dir_t filler, 65static int ifuse_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
66 off_t offset, struct fuse_file_info *fi) { 66 off_t offset, struct fuse_file_info *fi) {
67 int i; 67 int i;
68 char **dirs, **filename; 68 char **dirs;
69 AFClient *afc = fuse_get_context()->private_data; 69 AFClient *afc = fuse_get_context()->private_data;
70 70
71 dirs = afc_get_dir_list(afc, path); 71 dirs = afc_get_dir_list(afc, path);
@@ -173,8 +173,7 @@ static int ifuse_release(const char *path, struct fuse_file_info *fi){
173} 173}
174 174
175void *ifuse_init(struct fuse_conn_info *conn) { 175void *ifuse_init(struct fuse_conn_info *conn) {
176 char *response = (char*)malloc(sizeof(char) * 2048); 176 int port = 0;
177 int bytes = 0, port = 0, i = 0;
178 char* host_id = NULL; 177 char* host_id = NULL;
179 AFClient *afc = NULL; 178 AFClient *afc = NULL;
180 179