Received: by mail.netbsd.org (Postfix, from userid 605) id 8B89B84D64; Wed, 29 Jan 2020 03:04:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 11ABE84D63 for ; Wed, 29 Jan 2020 03:04:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id bJAsXDr-A7y6 for ; Wed, 29 Jan 2020 03:04:55 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id A872E84CF7 for ; Wed, 29 Jan 2020 03:04:55 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id A1D86FBF4; Wed, 29 Jan 2020 03:04:55 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 29 Jan 2020 03:04:55 +0000 From: "Jason R Thorpe" Subject: CVS commit: src/sys/net To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200129030455.A1D86FBF4@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Jason R Thorpe" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: thorpej Date: Wed Jan 29 03:04:55 UTC 2020 Modified Files: src/sys/net: net_stats.h Log Message: - Make _NET_STAT_GETREF()'s return value a net_stat_ref_t, which is defined as a "void *" to prevent using a net_stat_ref_t as an array. - For each _NET_STATADD(), etc. macro, also define a _NET_STATADD_REF() macro that takes a ref returned by _NET_STAT_GETREF() as an argument. This is intended to replace direct subscripting of the refernce; consumers of this API will be updated in future commits. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/net/net_stats.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.