From nobody Mon Apr 17 01:05:00 2023 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 4Q083c61n0z450Jh; Mon, 17 Apr 2023 01:05:00 +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 4Q083c5chxz4Ft2; Mon, 17 Apr 2023 01:05:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681693500; 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=6HFipGSDAVxPMkkMt6uOivpEIjsbrRFoMDozqne/wrc=; b=g+0V+DiHK+eFQdfi/vaMGjUSmh0j3Tog1eJMDBxLS5vms9qGmhaHObPrcXa1aerLa5tdD0 A5/SlR5BoUrTVZiFBjrHIuZnOdJddGb4XdzYUyJc75+9HBuS0sRx5HgwcjgTF8wKe/b7MW v73SyG2mjfjbOCT+/Sh4QfdjruyB8I+DW6h3/hXtM7aZ3zSR4MTS8SB2nVvP5SihUGlGy/ C8eHImdHthilFbO7bqI43n4ChMKz5OQBPxXavdGyYPTII51qaWhakWn/lPxiHThLCqB3RW LB8rNgbYNkVrMGGD0Axoz86IL5FLgfhLYHzbp0yjmxo8GLmUQLCrUxmhDQ7PXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681693500; 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=6HFipGSDAVxPMkkMt6uOivpEIjsbrRFoMDozqne/wrc=; b=wLPODpVrI3bopKtKivLWv4hMPrVUB7GZ1w2lsp3nP3T4HeF7tqfUXMH49Lh9OjDfftdEOo Fb6thFVJAdjBMw1pNwqcggUMNN9XDSPS8ExT8g1Wl/2qsEZHjvo2V+YJxPnhSTJf0wV2Yg 5ijjSIuBCJn0Ub0uRkLUkIQv0rIQxa86MDFbYa699QYpgn8iNkEO2uIn2OwpB1i2u2GIDO fqjqXcick42nLfmNQ5T1WGpRxRWIFB7enkHwSkme8+rL2SINegO2GuLyDzM3S6jeL4Krkl ZQkXwREnhyBnBz4j+Ok/l5ou8FfAYDx3aU7T18MFDQhGuwMbdN0N5Ik8RpARRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681693500; a=rsa-sha256; cv=none; b=lceWMId+PqVWgbwfmG5cN4aiDOxJFtFZv1Hx815DsefIFTN8vQO8BRCksgmUI1N7/fJZV2 /wxAfbqzFXH7ehGA5fFLBCTxlIJeH5frgRfF9vlRi6IbI9edgIR+XtloOv3zeesRA6OISH 9AsKenFGb9VOGVknuhkXRh/TNFncylfjw/WpCG+0vBlZgKNRgqOJeffOAMX4mze5HeGBuh A7JhJ1Ps5SB/kaNRUqmN0ttTN92I9w0kqQpyiT8LDe21aOGpPTXMxDnQVPA/hi8S7vphtk QFy0GIjHoGzwB2FoQ0xIOVfc/azYbmGNsPotyg3GW8kM3BATGjqbCN+kBr/qRQ== 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 4Q083c4gsxz18Pr; Mon, 17 Apr 2023 01:05:00 +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 33H150Kc020429; Mon, 17 Apr 2023 01:05:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33H150a7020428; Mon, 17 Apr 2023 01:05:00 GMT (envelope-from git) Date: Mon, 17 Apr 2023 01:05:00 GMT Message-Id: <202304170105.33H150a7020428@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Stephen J. Kiernan" Subject: git: 1c7ac0c23bc1 - main - veriexec: fix use of getopt 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: stevek X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1c7ac0c23bc12cc7cd5776fa28ebe0582e1bccec Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by stevek: URL: https://cgit.FreeBSD.org/src/commit/?id=1c7ac0c23bc12cc7cd5776fa28ebe0582e1bccec commit 1c7ac0c23bc12cc7cd5776fa28ebe0582e1bccec Author: Stephen J. Kiernan AuthorDate: 2023-04-17 00:59:37 +0000 Commit: Stephen J. Kiernan CommitDate: 2023-04-17 01:02:04 +0000 veriexec: fix use of getopt getopt(3) returns int type not char. Using char triggers the -Wtautological-constant-out-of-range-compare warning with clang. Change the type of the variable used for holding the return value of getopt(3) to int to match the prototype and eliminate the warning. MFC after: 1 week --- sbin/veriexec/veriexec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sbin/veriexec/veriexec.c b/sbin/veriexec/veriexec.c index 407100ab48f1..815aaae5e81b 100644 --- a/sbin/veriexec/veriexec.c +++ b/sbin/veriexec/veriexec.c @@ -140,8 +140,7 @@ main(int argc, char *argv[]) { long long converted_int; uint32_t state; - char c; - int x; + int c, x; if (argc < 2) return (veriexec_usage());