From: Christian Grothoff Date: Mon, 17 Sep 2012 13:30:14 +0000 (+0000) Subject: -fix warning X-Git-Tag: initial-import-from-subversion-38251~11767 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1e235920da4833235a83e8daa422f2420ab2368a;p=oweals%2Fgnunet.git -fix warning --- diff --git a/src/fs/gnunet-publish.c b/src/fs/gnunet-publish.c index 3fdc1a9fa..eb64cc4cc 100644 --- a/src/fs/gnunet-publish.c +++ b/src/fs/gnunet-publish.c @@ -135,6 +135,7 @@ static void * progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) { const char *s; + char *suri; switch (info->status) { @@ -164,10 +165,10 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) case GNUNET_FS_STATUS_PUBLISH_COMPLETED: FPRINTF (stdout, _("Publishing `%s' done.\n"), info->value.publish.filename); - s = GNUNET_FS_uri_to_string (info->value.publish.specifics. + suri = GNUNET_FS_uri_to_string (info->value.publish.specifics. completed.chk_uri); - FPRINTF (stdout, _("URI is `%s'.\n"), s); - GNUNET_free (s); + FPRINTF (stdout, _("URI is `%s'.\n"), suri); + GNUNET_free (suri); if (info->value.publish.pctx == NULL) { if (kill_task != GNUNET_SCHEDULER_NO_TASK) diff --git a/src/fs/perf_gnunet_service_fs_p2p.conf b/src/fs/perf_gnunet_service_fs_p2p.conf index e40b0f0f4..ac7d1b10b 100644 --- a/src/fs/perf_gnunet_service_fs_p2p.conf +++ b/src/fs/perf_gnunet_service_fs_p2p.conf @@ -4,3 +4,5 @@ SERVICEHOME = /tmp/gnunet-fs-test-lib/ [fs] GAUGER_HEAP = "2-peer 10 MB P2P download" + +