aboutsummaryrefslogtreecommitdiff
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
parent66bdbba886a79c557a81ee1565800eff056cdcc4 (diff)
downloadgnunet-738c998402c340b8c6b693216dbd2cab42262b5f.tar.gz
gnunet-738c998402c340b8c6b693216dbd2cab42262b5f.zip
-minor cleanup, fixing minor bug in auto-share
-rw-r--r--doc/man/gnunet-auto-share.12
-rw-r--r--src/fs/gnunet-auto-share.c12
-rw-r--r--src/include/gnunet_gns_service.h3
3 files changed, 9 insertions, 8 deletions
diff --git a/doc/man/gnunet-auto-share.1 b/doc/man/gnunet-auto-share.1
index e8a09d1cf..6373da26f 100644
--- a/doc/man/gnunet-auto-share.1
+++ b/doc/man/gnunet-auto-share.1
@@ -83,4 +83,4 @@ GNUnet configuration file
83.SH "REPORTING BUGS" 83.SH "REPORTING BUGS"
84Report bugs to <https://gnunet.org/bugs/> or by sending electronic mail to <gnunet\-developers@gnu.org> 84Report bugs to <https://gnunet.org/bugs/> or by sending electronic mail to <gnunet\-developers@gnu.org>
85.SH "SEE ALSO" 85.SH "SEE ALSO"
86\fBgnunet\-fs\-gtk\fP(1), \fBgnunet\-pseudonym\fP(1), \fBgnunet\-search\fP(1), \fBgnunet\-download\fP(1), \fBgnunet.conf\fP(5), \fBextract\fP(1) 86\fBgnunet\-fs\-gtk\fP(1), \fBgnunet\-publish\fP(1), \fBgnunet\-search\fP(1), \fBgnunet\-download\fP(1), \fBgnunet.conf\fP(5), \fBextract\fP(1)
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