aboutsummaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-06 11:51:26 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-06 11:51:26 +0000
commitd7c21fe4c5e22d792a75e265d2f6986c9695920e (patch)
tree451d3495f57e1f8a67b4188b99e851cbd440479d /src/fs
parent9511e1f51b3e6afc24525655e5c08bd7ee66faf7 (diff)
downloadgnunet-gtk-d7c21fe4c5e22d792a75e265d2f6986c9695920e.tar.gz
gnunet-gtk-d7c21fe4c5e22d792a75e265d2f6986c9695920e.zip
use GNUNET_new where applicable
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/gnunet-fs-gtk_publish-dialog.c4
-rw-r--r--src/fs/gnunet-fs-gtk_unindex.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/gnunet-fs-gtk_publish-dialog.c b/src/fs/gnunet-fs-gtk_publish-dialog.c
index b5d6e690..84564a91 100644
--- a/src/fs/gnunet-fs-gtk_publish-dialog.c
+++ b/src/fs/gnunet-fs-gtk_publish-dialog.c
@@ -1608,7 +1608,7 @@ scan_file_or_directory (struct MainPublishingDialogContext *ctx,
1608{ 1608{
1609 struct AddDirClientContext *adcc; 1609 struct AddDirClientContext *adcc;
1610 1610
1611 adcc = GNUNET_malloc (sizeof (struct AddDirClientContext)); 1611 adcc = GNUNET_new (struct AddDirClientContext);
1612 adcc->ctx = ctx; 1612 adcc->ctx = ctx;
1613 GNUNET_CONTAINER_DLL_insert_tail (ctx->adddir_head, ctx->adddir_tail, adcc); 1613 GNUNET_CONTAINER_DLL_insert_tail (ctx->adddir_head, ctx->adddir_tail, adcc);
1614 adcc->directory_scan_bo = *bo; 1614 adcc->directory_scan_bo = *bo;
@@ -1961,7 +1961,7 @@ GNUNET_GTK_master_publish_dialog_edit_button_clicked_cb (GtkWidget * dummy,
1961 struct MainPublishingDialogContext *ctx = user_data; 1961 struct MainPublishingDialogContext *ctx = user_data;
1962 struct EditPublishContext *epc; 1962 struct EditPublishContext *epc;
1963 1963
1964 epc = GNUNET_malloc (sizeof (struct EditPublishContext)); 1964 epc = GNUNET_new (struct EditPublishContext);
1965 epc->tm = ctx->file_info_treemodel; 1965 epc->tm = ctx->file_info_treemodel;
1966 if (! gtk_tree_selection_get_selected (ctx->file_info_selection, NULL, &epc->iter)) 1966 if (! gtk_tree_selection_get_selected (ctx->file_info_selection, NULL, &epc->iter))
1967 { 1967 {
diff --git a/src/fs/gnunet-fs-gtk_unindex.c b/src/fs/gnunet-fs-gtk_unindex.c
index 9977e5a6..e31c3ad8 100644
--- a/src/fs/gnunet-fs-gtk_unindex.c
+++ b/src/fs/gnunet-fs-gtk_unindex.c
@@ -214,7 +214,7 @@ GNUNET_FS_GTK_unindex_button_clicked_cb (GtkWidget * dummy,
214 g_free (filename); 214 g_free (filename);
215 return; 215 return;
216 } 216 }
217 ue = GNUNET_malloc (sizeof (struct UnindexEntry)); 217 ue = GNUNET_new (struct UnindexEntry);
218 ue->filesize = filesize; 218 ue->filesize = filesize;
219 GNUNET_CONTAINER_DLL_insert (ue_head, ue_tail, ue); 219 GNUNET_CONTAINER_DLL_insert (ue_head, ue_tail, ue);
220 ue->filename = GNUNET_strdup (filename); 220 ue->filename = GNUNET_strdup (filename);
@@ -443,7 +443,7 @@ GNUNET_FS_GTK_unindex_handle_resume_ (struct GNUNET_FS_UnindexContext *uc,
443{ 443{
444 struct UnindexEntry *ue; 444 struct UnindexEntry *ue;
445 445
446 ue = GNUNET_malloc (sizeof (struct UnindexEntry)); 446 ue = GNUNET_new (struct UnindexEntry);
447 ue->filename = GNUNET_strdup (filename); 447 ue->filename = GNUNET_strdup (filename);
448 if (NULL != emsg) 448 if (NULL != emsg)
449 ue->emsg = GNUNET_strdup (emsg); 449 ue->emsg = GNUNET_strdup (emsg);