From nobody Mon Jun 19 15:03:01 2023 X-Original-To: dev-commits-src-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 4QlCgV2PmJz4fTFF; Mon, 19 Jun 2023 15:03:02 +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 4QlCgT6JLnz44s5; Mon, 19 Jun 2023 15:03:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687186981; 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=nSCgQxcSOFoNRqWRthQ8twE4iqOgom35y7jdXv/taFQ=; b=sZsZGnEtfl2ScVqKWfHk/Yij1vvPTlvV32brViB0QfLasJYkJgKEQElALxDVcYk9BAZiKv o3aNh6gmzmTIvwTqn5wWmfGtOLe2nAzAnnXBztVT9mFKlofQQgUduVCllOPwYNLybeRAPf rdleQbI0tRefCbWZmZkVpQohKz1e/LEAwCqLA1QirfWS58+x3CNdQ0qSLQ+ourEMQvxCEB MCUoeP6VN6tIRvd6bZt5wyegz/ueReRZTVA4rk2yxLAzSR+I4EldjY3chP4E69yIxJztqS SlNC6/1qsISItOKRBbJUqvDHCMpSD2oDhj+E5QaUtVM/O1GwaVLuU1Z/xKb5vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687186981; 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=nSCgQxcSOFoNRqWRthQ8twE4iqOgom35y7jdXv/taFQ=; b=VxSCILKS3CETM/lmpejb9NasBVerqnRTo0SoPZoVqg1HS2iOliyTYg+QChfeJEWbpEpe2P 7Gd/xPS3wpT0eEPDMMzcaSI/R1NExLFqwkMenuQFPG/Kicclr5k0c+WS6FuyPXaT6ggobY A32byqo9RLzcMK1nMZs3UFiYbUb5JyDyV4Bu8bJW/pQsDr6pzLH6ZA0vwGKbrGX0rawkOQ 2TcpVldJyLScG4OLMAEGcs5Ys8ZZ5VkVahUj5aID6B227pQ478XCBIesH7V5cLhC2T41im 38jFKsB9Au14InwacNCVOBWR+pjl4aZIfMygUj4gfwpXL0XITMWWyAFWg2tbiQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687186981; a=rsa-sha256; cv=none; b=BElRZM7UDl0GgnZGOYLQGirRs5zYYJ4eQON7Pgk9MHz32kFJdhf2KXkaTSCIVgXTNITkZl h8AtGfSQVh097EWBCECMvpdAyU9bSSYUwQ7CVHBajzSeg6CUqtUlSz8G09r9xEmHgZRcUA m7eyvVKYMT6Xp/VHVVsYeGaSaB7VkErnWKxZWKUfLZnVyigXIGIt5ZMIsMAv4p+l0gUK7P I6/2gysD8nKl/XMFV6ipbJ1z9Qc4hiEfj8HKXcxIcVN0sfX+8Oc1h7W5wzPXqcjJSIZL1H 8eY38N2GzPEUF+2N04DG/Eb2Qkjywz8is45cIhEZmtLJM2kpALZ5J8GmRrfbqA== 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 4QlCgT5NXZzMWm; Mon, 19 Jun 2023 15:03:01 +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 35JF31rq034159; Mon, 19 Jun 2023 15:03:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35JF31L3034158; Mon, 19 Jun 2023 15:03:01 GMT (envelope-from git) Date: Mon, 19 Jun 2023 15:03:01 GMT Message-Id: <202306191503.35JF31L3034158@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: e77b2ea427c8 - main - ifconfig: set boolean to true rather than incrementing List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e77b2ea427c8aad502e0b56954745570e2fc8cd2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=e77b2ea427c8aad502e0b56954745570e2fc8cd2 commit e77b2ea427c8aad502e0b56954745570e2fc8cd2 Author: Ed Maste AuthorDate: 2023-06-19 15:01:08 +0000 Commit: Ed Maste CommitDate: 2023-06-19 15:02:38 +0000 ifconfig: set boolean to true rather than incrementing GCC warns about "increment of a boolean expression." Reported by: amd64-gcc12 Cirrus-CI run Sponsored by: The FreeBSD Foundation --- sbin/ifconfig/ifconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index fa22f09f8100..6d66677467c1 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -501,7 +501,7 @@ args_parse(struct ifconfig_args *args, int argc, char *argv[]) args->printkeys = true; break; case 'l': /* scan interface names only */ - args->namesonly++; + args->namesonly = true; break; case 'm': /* show media choices in status */ args->supmedia = true;