From nobody Tue Jun 20 16:29:34 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 4QlsXv2vcbz4gJjB; Tue, 20 Jun 2023 16:29:35 +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 4QlsXv0dnbz4LgC; Tue, 20 Jun 2023 16:29:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278575; 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=L3D9u6oY77bmvZO9B+xV0hYFwsKfOYepwukFP0dM8oo=; b=TOOck26Vv/bvPMwGjLTWR31/nON7QasZFtadT9LVVYO+QWoC3+ZIdS6pDrkQuogym+jMgO tJ5okd9sIcSK+V44AVetHKgRUUhSdTGdwGzh8x8IObiHTqh/G57qLGYkffyPE+NWWK/E2M CkCuLGpLrF19+xXo9RuZdNIBRlBj0OGgxCWyFiwO2llr266+LD6gLFthPmx2ZZfkTz3Shj X5iJEDDRIBdy83qB8nXHssyNTjQ/NqLOcnVbDzg6SYt39ySKlcpq1MPl74Mon2YVBveQgz lR3cgncMUdho3C1rnPPbIrX9Uh1Z6w6No1Rkpzvd1q9q6cXqhzD0FnW/fYnPug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278575; 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=L3D9u6oY77bmvZO9B+xV0hYFwsKfOYepwukFP0dM8oo=; b=Au8Nj26U2Gqdxoq2MUGsWBz3U4IVX5dOSlDIQw3EGxGbi8wzXGGG1C7trMw3utSibS+fjV DK8da1BiCC9AyIynWiLTy3IY57zC4+KVaEofyuyyDpIMT/gr8n96UzX5VXHeuF+T+YwGQg gEVMPi7Fq+aNz2MIsqLnMA9QOTnPb8gEUj2XF3lZqi2Z6Tabv+szIVf0hO+8prbV92imxN 6sbgVblRu/1qnouANqjggWGWt9opBiGH69PHNgfHKbCniwM92vBD1t+4dTkaI4FvhFMbDv xIWrpFKgJcka1RDQVWLJ0SyB2QP3gjpYRRL10t7chacVwm1dszJqZc9MtDymuw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687278575; a=rsa-sha256; cv=none; b=nKBYQNaH664wm0ex5HZ/nYm4IW6dFb4b1fuXc3GumJ3FJwU2w/paisy9RoHJMiNVVqavnt sqgsPluI/EAupwIKb1qYdQ1nZonjIFSDr7/Ifetrn0uIyjLyeqKc9K56t0zDJ0CGSVBWvt 3OQf290uIP8SDXqlQsTqVTZOtr7OiyQ2tVkh+epx6EjN5YaZpzjm8yWCFpMQgl6lDNXae5 +wfQzKREncGcK9QsuwM6l+pNDMTdfS/cpCcFnyvrJnwXMe8ZrRMG5dL3nYgJ1bDIHtsSSM EghShuQ7cqi0K+2lI8+pgXnDOCJuG3JWdixJ4lAINI23DKY8msqGuwQLLl8hlA== 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 4QlsXt6lMkz15qd; Tue, 20 Jun 2023 16:29:34 +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 35KGTY6g045391; Tue, 20 Jun 2023 16:29:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35KGTYGv045390; Tue, 20 Jun 2023 16:29:34 GMT (envelope-from git) Date: Tue, 20 Jun 2023 16:29:34 GMT Message-Id: <202306201629.35KGTYGv045390@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 660d6c5c3d63 - main - procstat: Remove set but unused 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 660d6c5c3d639bdb0902b8ca6cb9b3b8d5b8ccd7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=660d6c5c3d639bdb0902b8ca6cb9b3b8d5b8ccd7 commit 660d6c5c3d639bdb0902b8ca6cb9b3b8d5b8ccd7 Author: John Baldwin AuthorDate: 2023-06-20 16:29:00 +0000 Commit: John Baldwin CommitDate: 2023-06-20 16:29:00 +0000 procstat: Remove set but unused variable. --- usr.bin/procstat/procstat_files.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/usr.bin/procstat/procstat_files.c b/usr.bin/procstat/procstat_files.c index 01b09d54bccd..87995c7602a4 100644 --- a/usr.bin/procstat/procstat_files.c +++ b/usr.bin/procstat/procstat_files.c @@ -267,10 +267,9 @@ width_capability(cap_rights_t *rightsp) static void print_capability(cap_rights_t *rightsp, u_int capwidth) { - u_int count, i, width; + u_int count, i; count = 0; - width = 0; for (i = width_capability(rightsp); i < capwidth; i++) { if (i != 0) xo_emit(" "); @@ -282,9 +281,6 @@ print_capability(cap_rights_t *rightsp, u_int capwidth) if (cap_rights_is_set(rightsp, cap_desc[i].cd_right)) { xo_emit("{D:/%s}{l:capabilities/%s}", count ? "," : "", cap_desc[i].cd_desc); - width += strlen(cap_desc[i].cd_desc); - if (count) - width++; count++; } }