Date: Sun, 12 Jan 2025 21:43:50 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: c1e50bcc6215 - main - filesystems/httpdirfs: fix build on 32-bits Message-ID: <202501122143.50CLhooW098589@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=c1e50bcc6215576081ac9a4120e6cf2acdb51838 commit c1e50bcc6215576081ac9a4120e6cf2acdb51838 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2025-01-12 11:42:38 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2025-01-12 21:41:54 +0000 filesystems/httpdirfs: fix build on 32-bits ../src/link.c:998:55: error: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat] 998 | snprintf(range_str, sizeof(range_str), "%lu-%lu", start, end); | ~~~ ^~~~~ | %zu ../src/link.c:998:62: error: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat] 998 | snprintf(range_str, sizeof(range_str), "%lu-%lu", start, end); | ~~~ ^~~ | %zu 2 errors generated. --- filesystems/httpdirfs/files/patch-src_link.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/filesystems/httpdirfs/files/patch-src_link.c b/filesystems/httpdirfs/files/patch-src_link.c new file mode 100644 index 000000000000..ce08ede9c550 --- /dev/null +++ b/filesystems/httpdirfs/files/patch-src_link.c @@ -0,0 +1,11 @@ +--- src/link.c.orig 2025-01-12 11:28:19 UTC ++++ src/link.c +@@ -995,7 +995,7 @@ static CURL *Link_download_curl_setup(Link *link, size + size_t end = start + req_size - 1; + + char range_str[64]; +- snprintf(range_str, sizeof(range_str), "%lu-%lu", start, end); ++ snprintf(range_str, sizeof(range_str), "%zu-%zu", start, end); + lprintf(debug, "%s: %s\n", link->linkname, range_str); + + CURL *curl = Link_to_curl(link);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501122143.50CLhooW098589>