diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-17 13:30:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-17 13:30:14 +0000 |
commit | 1e235920da4833235a83e8daa422f2420ab2368a (patch) | |
tree | 628eae31ca20fc13bdee5a964741a9da626cd00b /src/fs | |
parent | e90476f4bdf5ce125b49ee7e235f4aee6592941e (diff) | |
download | gnunet-1e235920da4833235a83e8daa422f2420ab2368a.tar.gz gnunet-1e235920da4833235a83e8daa422f2420ab2368a.zip |
-fix warning
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/gnunet-publish.c | 7 | ||||
-rw-r--r-- | src/fs/perf_gnunet_service_fs_p2p.conf | 2 |
2 files changed, 6 insertions, 3 deletions
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 * | |||
135 | progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) | 135 | progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) |
136 | { | 136 | { |
137 | const char *s; | 137 | const char *s; |
138 | char *suri; | ||
138 | 139 | ||
139 | switch (info->status) | 140 | switch (info->status) |
140 | { | 141 | { |
@@ -164,10 +165,10 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) | |||
164 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: | 165 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: |
165 | FPRINTF (stdout, _("Publishing `%s' done.\n"), | 166 | FPRINTF (stdout, _("Publishing `%s' done.\n"), |
166 | info->value.publish.filename); | 167 | info->value.publish.filename); |
167 | s = GNUNET_FS_uri_to_string (info->value.publish.specifics. | 168 | suri = GNUNET_FS_uri_to_string (info->value.publish.specifics. |
168 | completed.chk_uri); | 169 | completed.chk_uri); |
169 | FPRINTF (stdout, _("URI is `%s'.\n"), s); | 170 | FPRINTF (stdout, _("URI is `%s'.\n"), suri); |
170 | GNUNET_free (s); | 171 | GNUNET_free (suri); |
171 | if (info->value.publish.pctx == NULL) | 172 | if (info->value.publish.pctx == NULL) |
172 | { | 173 | { |
173 | if (kill_task != GNUNET_SCHEDULER_NO_TASK) | 174 | 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/ | |||
4 | 4 | ||
5 | [fs] | 5 | [fs] |
6 | GAUGER_HEAP = "2-peer 10 MB P2P download" | 6 | GAUGER_HEAP = "2-peer 10 MB P2P download" |
7 | |||
8 | |||