/* 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)
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",
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;