From f8a438eb372b7623f179a76a73dfebc774a4883a Mon Sep 17 00:00:00 2001 From: Jonathan Dieter Date: Tue, 12 Jun 2018 09:00:05 +0300 Subject: [PATCH] ABI change: Rename function that looked too similar to another function Signed-off-by: Jonathan Dieter --- include/zck.h | 4 ++-- src/lib/dl/range.c | 2 +- src/zck_dl.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/zck.h b/include/zck.h index 1d52a7a..f0254d2 100644 --- a/include/zck.h +++ b/include/zck.h @@ -123,9 +123,9 @@ int zck_find_valid_chunks(zckCtx *zck) /* Get a zckRange of ranges that need to still be downloaded. * max_ranges is the maximum number of ranges supported in a single request - * by the server. If the server supports unlimited ranges, set to -1 + * by the server. If the server supports unlimited ranges, set this to -1 * Returns NULL if there's an error */ -zckRange *zck_get_dl_range(zckCtx *zck, int max_ranges) +zckRange *zck_get_missing_range(zckCtx *zck, int max_ranges) __attribute__ ((warn_unused_result)); /* Get a string representation of a zckRange */ char *zck_get_range_char(zckRange *range) diff --git a/src/lib/dl/range.c b/src/lib/dl/range.c index 5b25eb6..04aa267 100644 --- a/src/lib/dl/range.c +++ b/src/lib/dl/range.c @@ -196,7 +196,7 @@ char PUBLIC *zck_get_range_char(zckRange *range) { return output; } -zckRange PUBLIC *zck_get_dl_range(zckCtx *zck, int max_ranges) { +zckRange PUBLIC *zck_get_missing_range(zckCtx *zck, int max_ranges) { zckRange *range = zmalloc(sizeof(zckRange)); if(range == NULL) { zck_log(ZCK_LOG_ERROR, "Unable to allocate %lu bytes\n", diff --git a/src/zck_dl.c b/src/zck_dl.c index 28c5b0a..fd42bad 100644 --- a/src/zck_dl.c +++ b/src/zck_dl.c @@ -385,7 +385,7 @@ int main (int argc, char *argv[]) { while(zck_missing_chunks(zck_tgt) > 0) { dl_ctx.range_fail = 0; zck_dl_reset(dl); - zckRange *range = zck_get_dl_range(zck_tgt, dl_ctx.max_ranges); + zckRange *range = zck_get_missing_range(zck_tgt, dl_ctx.max_ranges); if(range == NULL || !zck_dl_set_range(dl, range)) { exit_val = 10; goto out; -- 2.30.2