aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_unindex.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-15 18:23:27 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-15 18:23:27 +0000
commit8b20ea06fdb75740cead194d5c6826b4233ec500 (patch)
treeb96b67ef0785a2bf9f1db49cee82e8cc5da4843e /src/fs/fs_unindex.c
parent34f5392dc97d411d437c963af3a6a8ade2529306 (diff)
downloadgnunet-8b20ea06fdb75740cead194d5c6826b4233ec500.tar.gz
gnunet-8b20ea06fdb75740cead194d5c6826b4233ec500.zip
-doxygen fixes, and fixing publish URI serization for proper resume
Diffstat (limited to 'src/fs/fs_unindex.c')
-rw-r--r--src/fs/fs_unindex.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c
index bb3accb82..ecf14112c 100644
--- a/src/fs/fs_unindex.c
+++ b/src/fs/fs_unindex.c
@@ -271,15 +271,12 @@ static void
271unindex_finish (struct GNUNET_FS_UnindexContext *uc) 271unindex_finish (struct GNUNET_FS_UnindexContext *uc)
272{ 272{
273 char *emsg; 273 char *emsg;
274 struct GNUNET_FS_Uri *uri;
275 struct UnindexMessage req; 274 struct UnindexMessage req;
276 275
277 /* generate final progress message */ 276 /* generate final progress message */
278 unindex_progress (uc, uc->file_size, NULL, 0, 0); 277 unindex_progress (uc, uc->file_size, NULL, 0, 0);
279 GNUNET_FS_tree_encoder_finish (uc->tc, &uri, &emsg); 278 GNUNET_FS_tree_encoder_finish (uc->tc, &emsg);
280 uc->tc = NULL; 279 uc->tc = NULL;
281 if (uri != NULL)
282 GNUNET_FS_uri_destroy (uri);
283 GNUNET_DISK_file_close (uc->fh); 280 GNUNET_DISK_file_close (uc->fh);
284 uc->fh = NULL; 281 uc->fh = NULL;
285 GNUNET_DATASTORE_disconnect (uc->dsh, GNUNET_NO); 282 GNUNET_DATASTORE_disconnect (uc->dsh, GNUNET_NO);
@@ -730,7 +727,7 @@ GNUNET_FS_unindex_signal_suspend_ (void *cls)
730 } 727 }
731 if (NULL != uc->tc) 728 if (NULL != uc->tc)
732 { 729 {
733 GNUNET_FS_tree_encoder_finish (uc->tc, NULL, NULL); 730 GNUNET_FS_tree_encoder_finish (uc->tc, NULL);
734 uc->tc = NULL; 731 uc->tc = NULL;
735 } 732 }
736 if (uc->fh != NULL) 733 if (uc->fh != NULL)
@@ -831,7 +828,7 @@ GNUNET_FS_unindex_stop (struct GNUNET_FS_UnindexContext *uc)
831 } 828 }
832 if (NULL != uc->tc) 829 if (NULL != uc->tc)
833 { 830 {
834 GNUNET_FS_tree_encoder_finish (uc->tc, NULL, NULL); 831 GNUNET_FS_tree_encoder_finish (uc->tc, NULL);
835 uc->tc = NULL; 832 uc->tc = NULL;
836 } 833 }
837 if (uc->fh != NULL) 834 if (uc->fh != NULL)