ABI change: Rename function that looked too similar to another function
authorJonathan Dieter <jdieter@gmail.com>
Tue, 12 Jun 2018 06:00:05 +0000 (09:00 +0300)
committerJonathan Dieter <jdieter@gmail.com>
Tue, 12 Jun 2018 06:00:05 +0000 (09:00 +0300)
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
include/zck.h
src/lib/dl/range.c
src/zck_dl.c

index 1d52a7af7e6bdfbbc6122afdf77f37d68ca68a46..f0254d2aec14eb3637265a12042957d2c18a9699 100644 (file)
@@ -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)
index 5b25eb62a523eab9f41ddf18e8552611b168c8e5..04aa2678e90462e58b3f04c0428f7a260fbc119e 100644 (file)
@@ -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",
index 28c5b0ac18d7d4686fc2609580d929ec733307a6..fd42bad3bbdf5686e8b8abb9030450a008d8b95a 100644 (file)
@@ -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;