From nobody Fri Mar 18 09:04:24 2022 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 B36B51A37CBD; Fri, 18 Mar 2022 09:04:24 +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 4KKdP44TPvz3MnF; Fri, 18 Mar 2022 09:04:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647594264; 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=uvW04txepHSiDVHReGV70Ny7F2tq6egq9Qu+ebOXsQw=; b=Avag7By6JocqmjpHaYVpppk52hpJO0sHndVw1ejZZ9wK3+z5QBBdt79ZI6OaKo6cvocKXl CNZ2CekstddL5QN7if94j7YQUfZEwh/KjmObSzTN/EGYG5G8Nxbbi0KrzKjksJGetmOWql W2jgSLDfiv5lx/ITzJHAW7R00q3Cra3FW4lxTZFtoe49z8hjNnI6FY6MwP6junbB+TZyzd vesPPkhwp8U3piVfKGVmWToEIuL7SSO0q6fG2tSUwml/b94WD5ZK6RDWAWhPZ6+YdXLTFk 6U1OCu7brQaxK3Sn5YrXWD18dwVAvO6WWQrTnQWofl9Qgya5N+qy+7UzmCueTg== 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 69AA51C0BF; Fri, 18 Mar 2022 09:04:24 +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 22I94OLj052759; Fri, 18 Mar 2022 09:04:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22I94ORE052758; Fri, 18 Mar 2022 09:04:24 GMT (envelope-from git) Date: Fri, 18 Mar 2022 09:04:24 GMT Message-Id: <202203180904.22I94ORE052758@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Piotr Pawel Stefaniak Subject: git: 8b1f5965d9a5 - main - procstat: remove set but not used variable 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: pstef X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8b1f5965d9a55a93517c4366f3e1f22166c1aff6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647594264; 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=uvW04txepHSiDVHReGV70Ny7F2tq6egq9Qu+ebOXsQw=; b=m+P9Sqy2T54PlbuO0bnAl/08t5mF+/WbMBF7MdH0aKeYN+qz/OE/QtMI3CawR0AUAYzJ3y DbADqH3qrP4iiACF77N8WxkPkxAw7q05gBg4of1bLcCvmc/1fr2WoxlUXIli8ppl/FFi6u OcMlyJVxyoSmhG5S7Tf43Rn0B4IyZQL377cuE2nQp+/IuOIau6X/0EOQDQs4GDnsNKmekt uT2DrH2d6/AB4SO8dFNekELSiQwnK8cW0LOjUK9NfpwFvaEUmn9c60YqFRvSal59fy/7Yy I9SR46jDhEtw3nVGeKRGZvOR4kHQzUWMhu8PrwHzX+z9fNv0FpfT/rA+6XVYyQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647594264; a=rsa-sha256; cv=none; b=cjZEzvFYEZA736Xsqv+DMRegjQCS1vLwAqzcdzBJeosLCzq9WLcCJnncXXGAWGfmDKuTje n1iPF/CkGhPpLD+9tE2/4ered9pzWUpbmuczdQkhr1FLRNJN1A+tGlu+bEc2AvNXzkYuEd +qG+md0xb0Dro1dJCM/e9EVIYekbZGdaVmI5BRpySQeT8LbxsbHJHJWIr5GyReJz9u40ht 0Is6FAorrM9rDNJ75ib4Fz56Ad2bkGvTMFIKmvGqUEqX+DH+X6V6QF901cvsLOUL61SfJX 1vSayT/bN7iaN/U7ffVqwhilRvvVLZC8LKc2kyD+KDqPDi9cSfNPAahjAmCL0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pstef: URL: https://cgit.FreeBSD.org/src/commit/?id=8b1f5965d9a55a93517c4366f3e1f22166c1aff6 commit 8b1f5965d9a55a93517c4366f3e1f22166c1aff6 Author: Piotr Pawel Stefaniak AuthorDate: 2022-03-17 21:53:00 +0000 Commit: Piotr Pawel Stefaniak CommitDate: 2022-03-18 09:03:56 +0000 procstat: remove set but not used variable In an earlier version of D26310, strcmp was strncmp. --- usr.bin/procstat/procstat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.bin/procstat/procstat.c b/usr.bin/procstat/procstat.c index a1cd082ecb5a..bb3b9e9de5a8 100644 --- a/usr.bin/procstat/procstat.c +++ b/usr.bin/procstat/procstat.c @@ -236,11 +236,10 @@ static const struct procstat_cmd * getcmdbyprogname(const char *pprogname) { const char *ca; - size_t i, len; + size_t i; if (pprogname == NULL) return (NULL); - len = strlen(pprogname); for (i = 0; i < nitems(pacmd_table); i++) { ca = pacmd_table[i].command;