git: 61deed379fc5 - stable/13 - tcpdrop: use a better name of a variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Dec 2021 10:43:28 UTC
The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=61deed379fc5c09985bb1da7afebbcf233f6413e commit 61deed379fc5c09985bb1da7afebbcf233f6413e Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2021-12-04 12:46:43 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2021-12-10 10:42:34 +0000 tcpdrop: use a better name of a variable. No functional change intended. Sponsored by: Netflix, Inc. (cherry picked from commit 300914a0ffb8b18ace16e6d40fc41270e6039b2e) --- 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))