From nobody Sun Jan 12 21:43:50 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YWTRY2Wtrz5jt3L; Sun, 12 Jan 2025 21:43:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YWTRV2W9wz4g46; Sun, 12 Jan 2025 21:43:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736718230; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CYGuYwAShnq1jaz8FFvdoFsCENsUostvBA6QMjNK+0o=; b=FyWpMw4QepnXPyms47Eus6ZMIMw+y3qz2rQipPuYAmidxLwhHLjZhlxdNbgmprqb2/wj00 yjEd4sUMunVng6xl21tnw+9wpkSY0IumMBbYIJjINRw8k4fV1/ahVafETJ8yId2YH2UYfG jzuhHsgSmEKlO8W5IqlJmjcGgWXueTrrZyyFMQLorggC8b4ULN2lw6m20/rV/ubWaBo2Ek c8bOjH+tE8jGEFE2xQFubspFNd3L16bQlVqYtOEBWTA/BmOZWoeXIwax1N9m91sZKBhrph gqA3tlpqY2faXlH+bDlYT6Rz8bzDuDoyKXXYYLUGfmVO6m+urlkr37H3LfLZuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736718230; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CYGuYwAShnq1jaz8FFvdoFsCENsUostvBA6QMjNK+0o=; b=Sbl9wtvNCgY3uTNKXQcb3UuosGv0mFj6IauKkHDujKjWOZyNnW8QfWwoAftn6iAV+DUky7 N85+E/uvJCLcR5R8hH/QqUkTV0D0z0Pob4CunAAWD7CoCx4ri3F+so+WLGYX3bi0uwHe7D ZsC0PVauv7UCinrZwhDZesCLui8iFhumkkzOd8UINRsHXQ0zM6//vSX+2PzeXvjcq6ECHB P9cOWSXvwbRlBLG4KZo03cO13+/iyOi+xNf2bEFvct9qXyIZxx87cO/8N3WWifPhoTbGLo UNsWY5cc7zSaFN49FSHAv5zPi+gZMv54L9Wc33+ZKDjzwXpzJV4ujph6GQAeww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736718230; a=rsa-sha256; cv=none; b=S69CHUmiKN6pgA5xFkTg4z3d1talcVA4llCJi8LNXEHq7w309tEURhLyJ/1OkpCKZl+/UF Y0PQx6ZcikDORC4j9znT+nYL3r8J0Hv0XGIPLjr1tM0ngITPzXwS1wx+JvttI43WL0iY1s mrR0v6eXqDKYT66RhvQiV+9H1KUSuNZCdagIafmN0XeOQ4SCKXKIqrtY/ho1rSpuZeL4IB MKZwYP+cEaXq8oUZU97uDadql1EZjkQxFBPQkOWfwLR/yDsapVk5Mf8mF/7LGSetIuG9rV ntzlp/bmFzRtPcqB9v28+ZIkAA8Yf9bu7U/BDNi6C09SR16nj+df2mGGx08nrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YWTRV22cBz12JX; Sun, 12 Jan 2025 21:43:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50CLhowY098592; Sun, 12 Jan 2025 21:43:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50CLhooW098589; Sun, 12 Jan 2025 21:43:50 GMT (envelope-from git) Date: Sun, 12 Jan 2025 21:43:50 GMT Message-Id: <202501122143.50CLhooW098589@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: c1e50bcc6215 - main - filesystems/httpdirfs: fix build on 32-bits List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c1e50bcc6215576081ac9a4120e6cf2acdb51838 Auto-Submitted: auto-generated The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=c1e50bcc6215576081ac9a4120e6cf2acdb51838 commit c1e50bcc6215576081ac9a4120e6cf2acdb51838 Author: Piotr Kubaj AuthorDate: 2025-01-12 11:42:38 +0000 Commit: Piotr Kubaj 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);