From 723c7131f0ae629629baadee4fd1d39457883ed9 Mon Sep 17 00:00:00 2001 From: Anthony Lloyd Date: Tue, 29 Apr 2025 22:42:11 +1000 Subject: [PATCH] fix build error on gcc 15.1.1 --- lib/libzsync/zsync.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libzsync/zsync.c b/lib/libzsync/zsync.c index b425db9..e8d6d33 100644 --- a/lib/libzsync/zsync.c +++ b/lib/libzsync/zsync.c @@ -457,12 +457,12 @@ const char *const *zsync_get_urls(struct zsync_state *zs, int *n, int *t) { if (zs->zmap && zs->nzurl) { *n = zs->nzurl; *t = 1; - return zs->zurl; + return (const char *const *)zs->zurl; } else { *n = zs->nurl; *t = 0; - return zs->url; + return (const char *const *)zs->url; } } @@ -947,7 +947,7 @@ static int zsync_receive_data_compressed(struct zsync_receiver *zr, if (zr->strm.total_in == 0 || offset != zr->strm.total_in) { zsync_configure_zstream_for_zdata(zr->zs, &(zr->strm), offset, - &(zr->outoffset)); + (long long *)&(zr->outoffset)); /* On first iteration, we might be reading an incomplete block from zsync's point of view. Limit avail_out so we can stop after doing that and realign with the buffer. */ zr->strm.avail_out = blocksize - (zr->outoffset % blocksize);