/* free resources */
if (NULL != ds->toplevel)
GNUNET_FS_share_tree_free (ds->toplevel);
- GNUNET_free (ds->ex_arg);
+ GNUNET_free_non_null (ds->ex_arg);
GNUNET_free (ds->filename_expanded);
GNUNET_free (ds);
}
if (0 != strcmp (filename,
ds->pos->filename))
{
+ fprintf (stderr,
+ "Expected `%s', got `%s'\n",
+ ds->pos->filename,
+ filename);
GNUNET_break (0);
break;
}
}
+/**
+ * FIXME: docu
+ */
static struct GNUNET_FS_FileInformation *
get_file_information (struct GNUNET_FS_ShareTreeItem *item)
{
}
+/**
+ * FIXME: docu
+ */
static void
directory_trim_complete ()
{
if (namespace != NULL)
GNUNET_FS_namespace_delete (namespace, GNUNET_NO);
GNUNET_FS_stop (ctx);
+ if (kill_task != GNUNET_SCHEDULER_NO_TASK)
+ {
+ GNUNET_SCHEDULER_cancel (kill_task);
+ kill_task = GNUNET_SCHEDULER_NO_TASK;
+ }
ret = 1;
break;
default: