From nobody Tue Feb 01 17:26:43 2022 X-Original-To: dev-commits-src-all@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 5B4A719A9648; Tue, 1 Feb 2022 17:26:44 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JpBgS24WLz3FyS; Tue, 1 Feb 2022 17:26:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643736404; 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=HCpjdysZ0eMUekHOF6zwPmvQa5+jJvn3cPyLCbOUde8=; b=vpaYXpqQWRQHrc4EXPIpBblTMqUgDd+jJkjs3jq053qjQX72odzBZQ29iFIB5WLnhiVjBF 12rOTpX4GPsYffi3iJG9cxm7FRyn3nzB2AQyBF5RTkRCA1c0QFxCO7rgyOTXgtQlNFqHRE P+svNiIBd8VTilG1a2q2J+5IZs1TCz6AI+utesr/NvunPDXEH6DFbsW50Yxknz7YfzQhtb 4gHsUt91q3xuv9fPuvAUyoOk5WbK2ICXuM+wbnowAFzvqZ0gsvkqzSeyd5rEU7KzO5HzHn +6yTddxmhjdNBk3NIj6WRsn/QHHIf1qPBwklzzW2bj+Wk0NQe3P6XAvZc48SZQ== 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 2233614DD8; Tue, 1 Feb 2022 17:26:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 211HQiMK013715; Tue, 1 Feb 2022 17:26:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 211HQhp4013714; Tue, 1 Feb 2022 17:26:43 GMT (envelope-from git) Date: Tue, 1 Feb 2022 17:26:43 GMT Message-Id: <202202011726.211HQhp4013714@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Wolfram Schneider Subject: git: 792df7ced212 - main - improve casting for pointer diffs List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 792df7ced212b1bb3993e8538ed511b36b146f95 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643736404; 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=HCpjdysZ0eMUekHOF6zwPmvQa5+jJvn3cPyLCbOUde8=; b=jqmVa35YcCMAQFwrZ9upkOuxfZTA5mb1CwASNCYitxDgGx5ZyTacCoJazVYlcz+QHXujr3 wYpEYMorMUzf/K0/HuN0D8vByFwyEqChNYPRmL6n1fJ0CEQ0HfEKi9O/gi8fqp4zOPXtk+ 49XhZzJai0qlqnhGt2GTztkPT+XJJPQHxfk53BmI8nbZe8uJoPTfCGi0f7k3/7AXA3gcIw ettVUfZSyW/EDoWg3/WDA734e1pHg0myNGTqZ3tG7TonqJn4sPCgjKUn5nr89Ul7Xc9BP1 v75lJiqyl2d2FAPk8GbaTuV0PnRCy1TsDo5GSWMMWq26JU7rGx74bdZEym2VCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643736404; a=rsa-sha256; cv=none; b=dtuEScZ1A9Vee1Y2CErVCBI07wBH8LE4XaACspshOeYe8bRMoa7TFy4MzSZJp4zk3LIqCI f80Qqunh+gWM/YRVHYxhkEqtuc29FA+36okMgoJb7vdB20/GFewzq9yW1aDdIn7GuN+B5G hQQn1Dv2E5WJK16dd5GJbAtV0sVH+cV/weuTXvcFnmoYK6mVi+2KoB/X/2dRqNRsaY5xqU PBByNnEe8fp1X2PG8tGHAgSo8ew6+/h+/JGhQN7cWglNkaMYJ3cF+OuTRlqF4lrfseYPVa ipTm8g37irMmcArlpwg41GRnjtb8JAjVdea1+uep3HrQZCdSeegz6+sokZpHWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/src/commit/?id=792df7ced212b1bb3993e8538ed511b36b146f95 commit 792df7ced212b1bb3993e8538ed511b36b146f95 Author: Wolfram Schneider AuthorDate: 2022-02-01 17:26:20 +0000 Commit: Wolfram Schneider CommitDate: 2022-02-01 17:26:20 +0000 improve casting for pointer diffs --- usr.bin/locate/locate/fastfind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/locate/locate/fastfind.c b/usr.bin/locate/locate/fastfind.c index d67c6c776f67..0dbec4ea15d3 100644 --- a/usr.bin/locate/locate/fastfind.c +++ b/usr.bin/locate/locate/fastfind.c @@ -296,7 +296,7 @@ fastfind } if (p - path >= LOCATE_PATH_MAX) - errx(1, "corrupted database: %s %d", database, (int)(p - path)); + errx(1, "corrupted database: %s %zu", database, (size_t)(p - path)); }