aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-28 16:45:40 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-28 16:45:40 +0000
commit738c998402c340b8c6b693216dbd2cab42262b5f (patch)
treebc379ab61524a4ee6896af462c767c62b06fe022 /src
parent66bdbba886a79c557a81ee1565800eff056cdcc4 (diff)
downloadgnunet-738c998402c340b8c6b693216dbd2cab42262b5f.tar.gz
gnunet-738c998402c340b8c6b693216dbd2cab42262b5f.zip
-minor cleanup, fixing minor bug in auto-share
Diffstat (limited to 'src')
-rw-r--r--src/fs/gnunet-auto-share.c12
-rw-r--r--src/include/gnunet_gns_service.h3
2 files changed, 8 insertions, 7 deletions
diff --git a/src/fs/gnunet-auto-share.c b/src/fs/gnunet-auto-share.c
index 886e0ba69..073b768db 100644
--- a/src/fs/gnunet-auto-share.c
+++ b/src/fs/gnunet-auto-share.c
@@ -721,6 +721,7 @@ free_item (void *cls,
721 return GNUNET_OK; 721 return GNUNET_OK;
722} 722}
723 723
724
724/** 725/**
725 * The main function to automatically publish content to GNUnet. 726 * The main function to automatically publish content to GNUnet.
726 * 727 *
@@ -768,10 +769,13 @@ main (int argc, char *const *argv)
768 gettext_noop 769 gettext_noop
769 ("Automatically publish files from a directory on GNUnet"), 770 ("Automatically publish files from a directory on GNUnet"),
770 options, &run, NULL)) ? ret : 1; 771 options, &run, NULL)) ? ret : 1;
771 (void) GNUNET_CONTAINER_multihashmap_iterate (work_finished, 772 if (NULL != work_finished)
772 &free_item, 773 {
773 NULL); 774 (void) GNUNET_CONTAINER_multihashmap_iterate (work_finished,
774 GNUNET_CONTAINER_multihashmap_destroy (work_finished); 775 &free_item,
776 NULL);
777 GNUNET_CONTAINER_multihashmap_destroy (work_finished);
778 }
775 while (NULL != (wi = work_head)) 779 while (NULL != (wi = work_head))
776 { 780 {
777 GNUNET_CONTAINER_DLL_remove (work_head, work_tail, wi); 781 GNUNET_CONTAINER_DLL_remove (work_head, work_tail, wi);
diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h
index ac9e2d006..73f5db5ac 100644
--- a/src/include/gnunet_gns_service.h
+++ b/src/include/gnunet_gns_service.h
@@ -22,10 +22,7 @@
22 * @file include/gnunet_gns_service.h 22 * @file include/gnunet_gns_service.h
23 * @brief API to the GNS service 23 * @brief API to the GNS service
24 * @author Martin Schanzenbach 24 * @author Martin Schanzenbach
25 *
26 */ 25 */
27
28
29#ifndef GNUNET_GNS_SERVICE_H 26#ifndef GNUNET_GNS_SERVICE_H
30#define GNUNET_GNS_SERVICE_H 27#define GNUNET_GNS_SERVICE_H
31 28