diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-16 11:27:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-16 11:27:08 +0000 |
commit | f736b24935d66733e9a53798fbc87dbc8aff9fca (patch) | |
tree | b7f865216ca4b40a4a6e4535dfa6677700a27efc /src/fs/gnunet-publish.c | |
parent | c5784d2c94adcf1fe80e88c9ab1c152ce2fcbe95 (diff) | |
download | gnunet-f736b24935d66733e9a53798fbc87dbc8aff9fca.tar.gz gnunet-f736b24935d66733e9a53798fbc87dbc8aff9fca.zip |
-fixing #2546
Diffstat (limited to 'src/fs/gnunet-publish.c')
-rw-r--r-- | src/fs/gnunet-publish.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/gnunet-publish.c b/src/fs/gnunet-publish.c index 96dcfbf69..3fdc1a9fa 100644 --- a/src/fs/gnunet-publish.c +++ b/src/fs/gnunet-publish.c | |||
@@ -134,7 +134,7 @@ stop_scanner_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
134 | static void * | 134 | 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 | char *s; | 137 | const char *s; |
138 | 138 | ||
139 | switch (info->status) | 139 | switch (info->status) |
140 | { | 140 | { |
@@ -143,12 +143,12 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) | |||
143 | case GNUNET_FS_STATUS_PUBLISH_PROGRESS: | 143 | case GNUNET_FS_STATUS_PUBLISH_PROGRESS: |
144 | if (verbose) | 144 | if (verbose) |
145 | { | 145 | { |
146 | s = GNUNET_STRINGS_relative_time_to_string (info->value.publish.eta); | 146 | s = GNUNET_STRINGS_relative_time_to_string (info->value.publish.eta, |
147 | GNUNET_YES); | ||
147 | FPRINTF (stdout, _("Publishing `%s' at %llu/%llu (%s remaining)\n"), | 148 | FPRINTF (stdout, _("Publishing `%s' at %llu/%llu (%s remaining)\n"), |
148 | info->value.publish.filename, | 149 | info->value.publish.filename, |
149 | (unsigned long long) info->value.publish.completed, | 150 | (unsigned long long) info->value.publish.completed, |
150 | (unsigned long long) info->value.publish.size, s); | 151 | (unsigned long long) info->value.publish.size, s); |
151 | GNUNET_free (s); | ||
152 | } | 152 | } |
153 | break; | 153 | break; |
154 | case GNUNET_FS_STATUS_PUBLISH_ERROR: | 154 | case GNUNET_FS_STATUS_PUBLISH_ERROR: |