From nobody Tue Jun 27 17:19:39 2023 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 4QrBKS3CtNz4f4Tl; Tue, 27 Jun 2023 17:19:40 +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 4QrBKS2Db6z3NDg; Tue, 27 Jun 2023 17:19:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687886380; 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=hpqOS90t+0o5hL+x9QClpSTiFb4KKSJuIz/U0pBnk+A=; b=dNFMHsLSxHFn86tNeCxQBs7xwirBTUm3eS8ME+u7TDr0TqnSW/Nm5PnQ2O9Cv5WwAcCro1 f3XcIoIdKyp6kSLT1BsFmfLUiDdTDDILAa+gHv8jEirjPHC60GBzG19pgwaZGilhmJcNA4 OV0uSFhCNda96dUfuCNdhOkvrY/5M8p0iWazKNZUH25yg2+0ftAweFlLcHlCc0IuvcXxVI 5ueC7ehxyGjj1QdnfLtpZqndDrNEAdhb3JToK5bmTq0WOvirAJ1LJegrbc0sjNzBCixh3n /f0Kd9kM6K8pA4b0+EYuyEu28dTYLuDgVgadnSyRz+r/06OTxy04vGYwKXutPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687886380; 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=hpqOS90t+0o5hL+x9QClpSTiFb4KKSJuIz/U0pBnk+A=; b=UwE53oo95GpxWrCgrhlbSC2UH4NP7lytAMUIuHKH5bmbv4OMdlbzlmvKvVhhcA7Khat5Es IIpnBPeqAikJx4e3QtvIaCCk1nhxPR4XrmfJ4GkdLhKLrmOSk8aTMpV37rRwLvCyHJ9yYb BGO85fU1mEn6lUQ2ZKpIviVA1YyxG9zYQlUeFeXpi8JddopajBJcdc6fr3q04SQw5537ey sseuV1k9xQT3wp9Vr6fK2MxWhjVseujszq9S3+y/X3WKPXNfQGW9rW5PESyELGh7vhVmvm m1AJttgz32uOpaivMij8gOZCYM+6gATtwY9ODJi6KHwLjiOxhSd+G4xbzKQ6Sg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687886380; a=rsa-sha256; cv=none; b=bStUvN7VsCBcesnmgJhSx8Rmdd/+lpZlifPCNgDdJiqbT50KF5nksf1MbxwLaHRzytCMeI g3nKL5naAKVnlRBRVXTI0FgqESulj2Tr51jAdj/Q2SZ7oI85gDLQUSxMgE6eMbIU1m9xPU rdmBTLGK5GZk8d+i8FaOlL86XA/OIa4awbOWsY+8dLBcqoMFcrBtUlYU6jWW4PcKpW4dBZ cBFK6dPBOfcxNdB78zJ9hHn71IKccy2rVNICeA9CwsUkOvbceC0lVqg9YI9jrRnVxWgr8M 7vHN+TRXIX62bCXqB++YXU10ngy/oxb/PJCoD/Lml12YiIlyjsr/7w4pgqIdrw== 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 4QrBKS12qDz111f; Tue, 27 Jun 2023 17:19:40 +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 35RHJd9I006805; Tue, 27 Jun 2023 17:19:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35RHJdm5006804; Tue, 27 Jun 2023 17:19:39 GMT (envelope-from git) Date: Tue, 27 Jun 2023 17:19:39 GMT Message-Id: <202306271719.35RHJdm5006804@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: a7f25f141ac5 - main - libipf: Remove set but unused variable from printfraginfo(). 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a7f25f141ac5fee8b67c2b60ad96bc91eaade870 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=a7f25f141ac5fee8b67c2b60ad96bc91eaade870 commit a7f25f141ac5fee8b67c2b60ad96bc91eaade870 Author: John Baldwin AuthorDate: 2023-06-27 17:19:31 +0000 Commit: John Baldwin CommitDate: 2023-06-27 17:19:31 +0000 libipf: Remove set but unused variable from printfraginfo(). Reported by: GCC Differential Revision: https://reviews.freebsd.org/D40652 --- sbin/ipf/libipf/printfraginfo.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sbin/ipf/libipf/printfraginfo.c b/sbin/ipf/libipf/printfraginfo.c index fcafdde707be..6abec4316a41 100644 --- a/sbin/ipf/libipf/printfraginfo.c +++ b/sbin/ipf/libipf/printfraginfo.c @@ -14,7 +14,6 @@ void printfraginfo(char *prefix, struct ipfr *ifr) { - frentry_t fr; int family; PRINTF("%s", prefix); @@ -25,14 +24,8 @@ printfraginfo(char *prefix, struct ipfr *ifr) PRINTF("inet"); family = AF_INET; } - fr.fr_flags = 0xffffffff; PRINTF(" %s -> ", hostname(family, &ifr->ipfr_src)); -/* - if (kmemcpy((char *)&fr, (u_long)ifr->ipfr_rule, - sizeof(fr)) == -1) - return; - */ PRINTF("%s id %x ttl %lu pr %d pkts %u bytes %u seen0 %d ref %d\n", hostname(family, &ifr->ipfr_dst), ifr->ipfr_id, ifr->ipfr_ttl, ifr->ipfr_p, ifr->ipfr_pkts, ifr->ipfr_bytes,