From nobody Tue Feb 01 17:34:29 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 EB33519ADBBC; Tue, 1 Feb 2022 17:34:30 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JpBrQ6Kptz3JMc; Tue, 1 Feb 2022 17:34:30 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643736870; 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: in-reply-to:in-reply-to:references:references; bh=E2ZBtojow6Oj187yjTPxDht0lk7PAqBO/W49tU5K2Es=; b=pXQnyqtXrT3NoinvxeVLRmBEDYspYNmk7ZyqKuFR3gPyf3RztI17uF26di2vs4S7NFoiCT XSionTlLMeDnSBuJESAO9rh0nUxQshU07Udy2vrzSA10D8ERs9+Mrmec8GsFSQhkU4ds9G RzYirtWL2bHAh3B0D3RLibAW/4qK3QCu6kg36+nbg2IHtj8yqfb4NNLe1MNqi7lKCI15// M12sZLdngvYuhaf3Z6NxE6GQQGtevHX4+TODrYNrdpelJ3/eVjhWZMqkBd6RgoHG3/GyNV N588Z461MmnfMcYo2KPlTJQxS1Va6fCq+jFDfU+5pkd1+Dt/XLIHxOpAZPwnTg== Received: from [10.0.1.4] (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 482FF2FA76; Tue, 1 Feb 2022 17:34:30 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <34d1b854-1bed-b744-e985-f72349246da7@FreeBSD.org> Date: Tue, 1 Feb 2022 09:34:29 -0800 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 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: git: 792df7ced212 - main - improve casting for pointer diffs Content-Language: en-US To: Wolfram Schneider , src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202202011726.211HQhp4013714@gitrepo.freebsd.org> From: John Baldwin In-Reply-To: <202202011726.211HQhp4013714@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643736870; 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: in-reply-to:in-reply-to:references:references; bh=E2ZBtojow6Oj187yjTPxDht0lk7PAqBO/W49tU5K2Es=; b=nvjF8Fry3II3HujIAdQrnVhLtrXE/uCVOrzK4+7Axaxm39eTXxSH1X630XqA6yfqy92Q2m qrh5mCmB7SDB10fnmysEGsESkB0ezvETnCLuuK4VtRiGh3RjWnlzao7VTjGN4Ft0L4LLs5 AQHKPXFIHUWcaIYpGO+zhIKApifoqo6cOvZmXBrKBzSLrXSIfoxWcS8YzWjQQaAjNnJZWw ZYgstOxxR4rIrMaREEyyxDhpWW0b+id6NDNo+vrNLaCdldy4DWbob2usBLpYlvH/9o8feG Z57NGI4Z5NbdIA/fY9ELv6UV7dMNuMHqw2sv43PcQiQHjFfPjjhA6lj5Ibzflw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643736870; a=rsa-sha256; cv=none; b=XsDxaUeyRG9Zgu4Z/87hvOA0Umw5Kx7N7LzqAD/7vrehJ6Du3F2gT/Z+knu6QaloH9B0Pw TDcXyV7Zm4w1uxxemQCKoCAVhRSTunw85bOmtDfYIW+yLFHa2Phwnrb2DXFpZ/hslY+FFT 8B2fLVsA42T0k3UROVO4mjCTB3ezZD3Beece0IPuRogyOgmnFXuLIna3Be4eIFkHe3zODa VDVnz1NqIiGj1wKgOJ7YcV+dvbzHDef6cLVBfOpsW2DdbBUwYzHVPLVUEFE48glJKP3OZ9 PsQ/ry02CKU4E1T5S3vUA3YlcgOoLeOmPuctiqwfbSHg0MysALuPn0IGJ40Hog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 2/1/22 9:26 AM, Wolfram Schneider wrote: > 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)); p - path returns a ptrdiff_t which can be printed directly via the 't' modifier: errx(1, "corrupted database: %s %td", database, p - path); -- John Baldwin