From nobody Tue Mar 22 18:53:53 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 8FA541A2B53D; Tue, 22 Mar 2022 18:53:54 +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 4KNLHP54NFz3tPw; Tue, 22 Mar 2022 18:53:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647975234; 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=AJ7dWadbpsu5GpcZLj7oVV5XycltigkwG3oIZBz+Yb8=; b=g3ydwYjuWFKocf5k0psU4k5yMGCaEXpEm2eNQE9a6azEXAOwK8pfnSS5IjCBi/gZDK0Iyx idqWmiSfrc5fxG9lSYfvNIXUPXXGuIJugNC97fT819nzlQCiCLZ2HZdefzJRD2Hw6VWWbs /SM+oAU8laxo6Fwq8u0TgdHU9aSmhCSKXR4pLiWNs0mYiKqSQX2OrdRE52D5cgWX0zVg+C /DXCDRuDzo0etR3INVl1+MICg5292AE0JSpzAWVpGzEss3/IeBuSXXaTbrcfSBaY4QajA2 gW/bxf/S6ANefdUW4CTY9qOKVtz9+wVHRDWl6Tr0uSnoq0tKh6rWy2CJIIAD8g== 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 35F4214AD5; Tue, 22 Mar 2022 18:53:53 +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 22MIrrPV099735; Tue, 22 Mar 2022 18:53:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22MIrrgu099734; Tue, 22 Mar 2022 18:53:53 GMT (envelope-from git) Date: Tue, 22 Mar 2022 18:53:53 GMT Message-Id: <202203221853.22MIrrgu099734@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Piotr Pawel Stefaniak Subject: git: c38d2d1811bf - stable/13 - procstat: remove set but not used variable 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: pstef X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: c38d2d1811bfe50cef7be74d78b16034ef1deff8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647975234; 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=AJ7dWadbpsu5GpcZLj7oVV5XycltigkwG3oIZBz+Yb8=; b=tQ8SFZ52LVcN4FZVubWsESzQyUrzGWV0RNk3rSmJu3LRsSFKFme6Iv5u9E7lqLRbfslLmg DlrKtQDpS9AuRS5byD6OtLBSqy+zpBObhQEELpi/m8UEjkjTgVhGUemzoWSzXji52+N7Aj KNruQqPJfWLMD02F5QcjOF0LY5Ey2jxh6k2MnGW7Q8ZYgD1heNkfbfWTgCKE2FghbseVIz omwarWIAsyXTrBR7Jdar3YRaSnHZhJN2O81zMUrDJvm0SvkQRaUx7LSxAy1MIbt99ov3sI vWC5eeL0HXMF2Xso4TNCg75Tb3FjojRviMEI6IA1tAxf94WksdX48wTJP72Gzw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647975234; a=rsa-sha256; cv=none; b=jywRvP1qr2BX2CabMp5KBGMydC44TE9iPFKwPQWzZ5E1gnL8hApY+U5abhY95pQ1BWd8dX r6DON38dm/IrJ5gdm0cLKilDSrkrTiHAoMg6XsfdSwe56VqFXrkqkDcDNdS7eFAg+pou/q jxJ+MXSs12EXvTwZJgBLO5+wSN5C87VKJjDkxMSzdi0UHIhWu48x0nNA7sjP+9N3fU3O2W 9IA0n50p5aNFqjuFWXdHTNYmQCU55ofnCcuHUvy/TINzkNJ7YAZvZNN7XWf7X+5qauQeeb IqnHALYPQYkGXwBNtiTSY9roMOGg0AKqutc3CTs6FR7HrmsH8x+7VKAlO/RcJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by pstef: URL: https://cgit.FreeBSD.org/src/commit/?id=c38d2d1811bfe50cef7be74d78b16034ef1deff8 commit c38d2d1811bfe50cef7be74d78b16034ef1deff8 Author: Piotr Pawel Stefaniak AuthorDate: 2022-03-17 21:53:00 +0000 Commit: Piotr Pawel Stefaniak CommitDate: 2022-03-22 17:36:16 +0000 procstat: remove set but not used variable In an earlier version of D26310, strcmp was strncmp. (cherry picked from commit 8b1f5965d9a55a93517c4366f3e1f22166c1aff6) --- 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;