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.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/fs/download.c b/src/plugins/fs/download.c
index fdde54ca..a0d34c3f 100644
--- a/src/plugins/fs/download.c
+++ b/src/plugins/fs/download.c
@@ -87,7 +87,7 @@ refreshDirectoryViewFromDisk (DownloadList * list)
87 const 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_MetaData *meta;
91 struct stat buf; 91 struct stat buf;
92 const char *f; 92 const char *f;
93 93
@@ -149,7 +149,7 @@ refreshDirectoryViewFromDisk (DownloadList * list)
149 MUNMAP ((void *) 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_meta_data_destroy (meta);
153} 153}
154 154
155/** 155/**
@@ -306,7 +306,7 @@ fs_download_started (struct GNUNET_FSUI_DownloadList *fsui_dl,
306 } 306 }
307 list->fsui_list = fsui_dl; 307 list->fsui_list = fsui_dl;
308 list->total = total; 308 list->total = total;
309 list->is_directory = GNUNET_ECRS_meta_data_test_for_directory (fi->meta); 309 list->is_directory = GNUNET_meta_data_test_for_directory (fi->meta);
310 list->has_terminated = ((state != GNUNET_FSUI_ACTIVE) 310 list->has_terminated = ((state != GNUNET_FSUI_ACTIVE)
311 && (state != GNUNET_FSUI_PENDING)); 311 && (state != GNUNET_FSUI_PENDING));
312 list->next = download_head; 312 list->next = download_head;
@@ -329,7 +329,7 @@ fs_download_update (DownloadList * list,
329 GtkTreeIter iter; 329 GtkTreeIter iter;
330 GtkTreePath *path; 330 GtkTreePath *path;
331 unsigned int val; 331 unsigned int val;
332 struct GNUNET_ECRS_MetaData *meta; 332 struct GNUNET_MetaData *meta;
333 333
334 path = gtk_tree_row_reference_get_path (list->summaryViewRowReference); 334 path = gtk_tree_row_reference_get_path (list->summaryViewRowReference);
335 if (path == NULL) 335 if (path == NULL)
@@ -352,7 +352,7 @@ fs_download_update (DownloadList * list,
352 data, size, &meta, 352 data, size, &meta,
353 &addFilesToDirectory, list); 353 &addFilesToDirectory, list);
354 if (meta != NULL) 354 if (meta != NULL)
355 GNUNET_ECRS_meta_data_destroy (meta); 355 GNUNET_meta_data_destroy (meta);
356 } 356 }
357} 357}
358 358
@@ -532,7 +532,7 @@ typedef struct
532{ 532{
533 char *uri_name; 533 char *uri_name;
534 struct GNUNET_ECRS_URI *idc_uri; 534 struct GNUNET_ECRS_URI *idc_uri;
535 struct GNUNET_ECRS_MetaData *idc_meta; 535 struct GNUNET_MetaData *idc_meta;
536 char *idc_final_download_destination; 536 char *idc_final_download_destination;
537 SearchList *searchContext; 537 SearchList *searchContext;
538 DownloadList *parentContext; 538 DownloadList *parentContext;
@@ -831,7 +831,7 @@ on_statusDownloadURIEntry_editing_done_fs (GtkWidget * entry,
831 strcat (sdc.idc_final_download_destination, dname); 831 strcat (sdc.idc_final_download_destination, dname);
832 832
833 GNUNET_GTK_add_log_entry (_("Downloading `%s'\n"), uris); 833 GNUNET_GTK_add_log_entry (_("Downloading `%s'\n"), uris);
834 sdc.idc_meta = GNUNET_ECRS_meta_data_create (); 834 sdc.idc_meta = GNUNET_meta_data_create ();
835 sdc.anonymity = 835 sdc.anonymity =
836 getSpinButtonValue (GNUNET_GTK_get_main_glade_XML (), 836 getSpinButtonValue (GNUNET_GTK_get_main_glade_XML (),
837 "fsstatusAnonymitySpin"); 837 "fsstatusAnonymitySpin");
@@ -839,7 +839,7 @@ on_statusDownloadURIEntry_editing_done_fs (GtkWidget * entry,
839 sdc.searchContext = NULL; 839 sdc.searchContext = NULL;
840 sdc.parentContext = NULL; 840 sdc.parentContext = NULL;
841 GNUNET_GTK_run_with_save_calls (&init_download_helper, &sdc); 841 GNUNET_GTK_run_with_save_calls (&init_download_helper, &sdc);
842 GNUNET_ECRS_meta_data_destroy (sdc.idc_meta); 842 GNUNET_meta_data_destroy (sdc.idc_meta);
843 GNUNET_free (sdc.idc_final_download_destination); 843 GNUNET_free (sdc.idc_final_download_destination);
844 GNUNET_free (urid); 844 GNUNET_free (urid);
845} 845}