diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-18 18:00:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-18 18:00:12 +0000 |
commit | c3bb2fde588bc1f9d822bc5dfbbb930e52a21b83 (patch) | |
tree | a0f4a183b6dded627a1a133a4c1e3cf8c2a2ff2f /src/fs/gnunet-download.c | |
parent | c871949ce934d896718de59775c8b0b7285720c1 (diff) |
minor consistency improvements to FS API and another testcase that compiles but does not yet run
Diffstat (limited to 'src/fs/gnunet-download.c')
-rw-r--r-- | src/fs/gnunet-download.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/fs/gnunet-download.c b/src/fs/gnunet-download.c index 00565b1a36..b4e787cfae 100644 --- a/src/fs/gnunet-download.c +++ b/src/fs/gnunet-download.c @@ -74,7 +74,7 @@ progress_cb (void *cls, _("Downloading `%s' at %llu/%llu (%s remaining, %s/s)\n"), info->value.download.filename, (unsigned long long) info->value.download.completed, - (unsigned long long) info->value.download.length, + (unsigned long long) info->value.download.size, GNUNET_STRINGS_relative_time_to_string(info->value.download.eta), GNUNET_STRINGS_byte_size_fancy(info->value.download.completed * 1000 / (info->value.download.duration.value + 1))); break; @@ -82,7 +82,7 @@ progress_cb (void *cls, fprintf (stderr, _("Error downloading: %s.\n"), info->value.download.specifics.error.message); - GNUNET_FS_file_download_stop (dc, delete_incomplete); + GNUNET_FS_download_stop (dc, delete_incomplete); break; case GNUNET_FS_STATUS_DOWNLOAD_COMPLETED: fprintf (stdout, @@ -90,7 +90,7 @@ progress_cb (void *cls, info->value.download.filename, GNUNET_STRINGS_byte_size_fancy(info->value.download.completed * 1000 / (info->value.download.duration.value + 1))); if (info->value.download.dc == dc) - GNUNET_FS_file_download_stop (dc, delete_incomplete); + GNUNET_FS_download_stop (dc, delete_incomplete); break; case GNUNET_FS_STATUS_DOWNLOAD_STOPPED: if (info->value.download.dc == dc) @@ -172,15 +172,15 @@ run (void *cls, return; } options = GNUNET_FS_DOWNLOAD_OPTION_NONE; - dc = GNUNET_FS_file_download_start (ctx, - uri, - NULL, - filename, - 0, - GNUNET_FS_uri_chk_get_file_size (uri), - anonymity, - options, - NULL); + dc = GNUNET_FS_download_start (ctx, + uri, + NULL, + filename, + 0, + GNUNET_FS_uri_chk_get_file_size (uri), + anonymity, + options, + NULL); GNUNET_FS_uri_destroy (uri); } |