From nobody Sat Dec 04 12:49:01 2021 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 0E99F18CF7ED; Sat, 4 Dec 2021 12:49: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 4J5qJF5k8Cz4SLm; Sat, 4 Dec 2021 12:49:01 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 A33E924A19; Sat, 4 Dec 2021 12:49: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 1B4Cn1LX030937; Sat, 4 Dec 2021 12:49:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B4Cn19O030936; Sat, 4 Dec 2021 12:49:01 GMT (envelope-from git) Date: Sat, 4 Dec 2021 12:49:01 GMT Message-Id: <202112041249.1B4Cn19O030936@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michael Tuexen Subject: git: 300914a0ffb8 - main - tcpdrop: use a better name of a 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: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 300914a0ffb8b18ace16e6d40fc41270e6039b2e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638622141; 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=JGyg1adfLZ/guiB6KP6WqJM9ToUQd+HrzGSGHZzHKVo=; b=A9h3NfBBQp06J/4lBX7fQV3ZfT3HpUO2KwxxjtHSzugfBoXum3c1LCkGKIYW9kgq9scbrQ j727ve9ssEDDSsEYJs893LE0BcTR+45bEiv8UmGfJhwajxFglvQ7ZInJAADo2SOX+oTc9H AznWs/a/gQRM9g2YloZBbO79wOvDdXONDMy4y+2zKFYgHA3hDutBqKKNkNUrI7xae2ELFD BoRox/cw99791GIlcqDKg+fI4Uyu64rldlrM/IvTWADlF43O/GuFCnxytnU36ntlC7qtgV tRgWyLUlsTepVEIe5Z1syJ097wTl78/Y4/8OiEwjP8U3AdstmG7yUoOs+8WqLw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638622141; a=rsa-sha256; cv=none; b=higoRFRp4zkCHjq9B6yLyFPAEcM+E+RBheE2qP1mDSXtI88u5lNnqb8S/1Zh9wj4EFNEsq XAdb6C6dlfOBw+PyZ33COlUXyG+CbSXJ4/Oow8adAANdGGNDMNu9TZqS88AW0oyfEp/48f k+jAdXrGjQkdaj+0pgrQJy/PLj0FtJ+JqnvFTm2dL/lfoLbM9q+MiByVFfJA1fPShqkOdt 2Uo36wNrnTokRw/6aFuW6hzkZZG2b+yhCu/7d7soZcm60aiRXzWMLC5HHBZ8z1BznN/TBh aj/p0gJJrDzZhZeLFFB0bkuohStjnqV62ZRuZ9OQGMTBk50ToZgNAldSgIsTxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=300914a0ffb8b18ace16e6d40fc41270e6039b2e commit 300914a0ffb8b18ace16e6d40fc41270e6039b2e Author: Michael Tuexen AuthorDate: 2021-12-04 12:46:43 +0000 Commit: Michael Tuexen CommitDate: 2021-12-04 12:48:41 +0000 tcpdrop: use a better name of a variable. No functional change intended. MFC after: 1 week Sponsored by: Netflix, Inc. --- usr.sbin/tcpdrop/tcpdrop.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/usr.sbin/tcpdrop/tcpdrop.c b/usr.sbin/tcpdrop/tcpdrop.c index 1c854c0b29e8..f05c027362b8 100644 --- a/usr.sbin/tcpdrop/tcpdrop.c +++ b/usr.sbin/tcpdrop/tcpdrop.c @@ -68,11 +68,11 @@ main(int argc, char *argv[]) { char stack[TCP_FUNCTION_NAME_LEN_MAX]; char *lport, *fport; - bool dropall, dropallstack; + bool dropall, dropspecific; int ch, state; dropall = false; - dropallstack = false; + dropspecific = false; stack[0] = '\0'; state = -1; @@ -85,11 +85,11 @@ main(int argc, char *argv[]) tcpdrop_list_commands = true; break; case 'S': - dropallstack = true; + dropspecific = true; strlcpy(stack, optarg, sizeof(stack)); break; case 's': - dropallstack = true; + dropspecific = true; for (state = 0; state < TCP_NSTATES; state++) { if (strcmp(tcpstates[state], optarg) == 0) break; @@ -106,9 +106,9 @@ main(int argc, char *argv[]) state == TCPS_CLOSED || state == TCPS_LISTEN) usage(); - if (dropall && dropallstack) + if (dropall && dropspecific) usage(); - if (dropall || dropallstack) { + if (dropall || dropspecific) { if (argc != 0) usage(); if (!tcpdropall(stack, state))