aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/download.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/download.c')
-rw-r--r--src/plugins/fs/download.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/fs/download.c b/src/plugins/fs/download.c
index 1b54d4a3..a7868f2c 100644
--- a/src/plugins/fs/download.c
+++ b/src/plugins/fs/download.c
@@ -84,7 +84,7 @@ static void
84refreshDirectoryViewFromDisk (DownloadList * list) 84refreshDirectoryViewFromDisk (DownloadList * list)
85{ 85{
86 unsigned long long size; 86 unsigned long long size;
87 char *data; 87 const char *data;
88 int fd; 88 int fd;
89 char *fn; 89 char *fn;
90 struct GNUNET_ECRS_MetaData *meta; 90 struct GNUNET_ECRS_MetaData *meta;
@@ -126,7 +126,7 @@ refreshDirectoryViewFromDisk (DownloadList * list)
126 GNUNET_free_non_null (fn); 126 GNUNET_free_non_null (fn);
127 return; 127 return;
128 } 128 }
129 fd = GNUNET_disk_file_open (ectx, list->filename, O_RDONLY); 129 fd = GNUNET_disk_file_open (ectx, f, O_RDONLY);
130 if (fd == -1) 130 if (fd == -1)
131 { 131 {
132 GNUNET_free_non_null (fn); 132 GNUNET_free_non_null (fn);
@@ -146,7 +146,7 @@ refreshDirectoryViewFromDisk (DownloadList * list)
146 meta = NULL; 146 meta = NULL;
147 GNUNET_ECRS_directory_list_contents (ectx, data, size, &meta, 147 GNUNET_ECRS_directory_list_contents (ectx, data, size, &meta,
148 &addFilesToDirectory, list); 148 &addFilesToDirectory, list);
149 MUNMAP (data, size); 149 MUNMAP ((void*)data, size);
150 CLOSE (fd); 150 CLOSE (fd);
151 if (meta != NULL) 151 if (meta != NULL)
152 GNUNET_ECRS_meta_data_destroy (meta); 152 GNUNET_ECRS_meta_data_destroy (meta);