From nobody Sat Dec 11 05:53:11 2021 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 D800718E76CD; Sat, 11 Dec 2021 05:53:11 +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 4J9xlC1kQdz4ttg; Sat, 11 Dec 2021 05:53:11 +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 1BA0F2E7; Sat, 11 Dec 2021 05:53:11 +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 1BB5rBOK059202; Sat, 11 Dec 2021 05:53:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BB5rB3s059201; Sat, 11 Dec 2021 05:53:11 GMT (envelope-from git) Date: Sat, 11 Dec 2021 05:53:11 GMT Message-Id: <202112110553.1BB5rB3s059201@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: 712b938661f9 - main - ipft_pc: remove set-but-not-unused vars 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: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 712b938661f98a66180832632550060c7ba387df Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639201991; 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=cU+d8ansRfXB1loE791mGO55jYClh9Rz4QaljQt9FCs=; b=w9+9UPKN+dBWPE/RzzQ1M7/QQQijXhWfMIt+I4iBolNH1RUokYS9HU0wg7hg3PoBGY2FNY FXF5l6sqx2yRedwZysijY+97JJgU4yEZq9ZHA/t7cjCgFfIAX4J2NHeU8NGNwbqeUjYLA4 vVZjto32loZ6XjhJhyT2fRBELkLLKsC7xcX6Gl6amwD9a433megvoZOjYiz6DKoSmR+c7Y 4Eod4XG9gfJeaIINKY1tryQzoOLayaR0cXKI7LgHbL9F8r7w9yH1NCndMC33rAPISYHYCF EHWJrnQOOmzVNLKBV6yT9syLBcTPYzIRP7gr8K1ScIzD+otqvzJCTkaIUfzusA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639201991; a=rsa-sha256; cv=none; b=hNzsIAZaeNNGMzI+yLpmFDEgjIOCiop0iDLmwrJFyR5XUeKJBiA/o0kIKHWCCASO6ubQnU ps/CljXMm3nwTY4yvUzv2q73amx9/dwwVoh5Bc3vDnX+ntB8Dx0D/DyskYEuooMippBL7b zipqDJ0IQN3+JuU3tF6oMQacq6oxHQkymLpvPME4dYD75Gnna6R+0a0tmhzt1f+q4T2A3V P/vKnHj+PPoDsJ/KW4pKLEVRFoavpiYXb0nwofhNVWjUov6mfVTqlGukpeZXLR1p8MSbWg VnE6uv8xmK7GZ+h/Fpq9FxkVd0J+4sekABFgp4T4CXRAepdz9RiVYMopdgvVMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=712b938661f98a66180832632550060c7ba387df commit 712b938661f98a66180832632550060c7ba387df Author: Cy Schubert AuthorDate: 2021-12-11 04:48:17 +0000 Commit: Cy Schubert CommitDate: 2021-12-11 05:52:54 +0000 ipft_pc: remove set-but-not-unused vars MFC after: 3 days --- contrib/ipfilter/lib/ipft_pc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/contrib/ipfilter/lib/ipft_pc.c b/contrib/ipfilter/lib/ipft_pc.c index bd0c752c392f..65eee078bd06 100644 --- a/contrib/ipfilter/lib/ipft_pc.c +++ b/contrib/ipfilter/lib/ipft_pc.c @@ -138,16 +138,13 @@ static int ipcap_read_rec(rec) packetheader_t *rec; { int n, p, i; - char *s; - s = (char *)rec; n = sizeof(*rec); while (n > 0) { i = read(pfd, (char *)rec, sizeof(*rec)); if (i <= 0) return -2; - s += i; n -= i; }