From owner-svn-src-head@FreeBSD.ORG Thu Jun 19 05:28:43 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2A2C1C91; Thu, 19 Jun 2014 05:28:43 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 17A7A27A1; Thu, 19 Jun 2014 05:28:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5J5Sgk5099793; Thu, 19 Jun 2014 05:28:42 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s5J5Sg8m099792; Thu, 19 Jun 2014 05:28:42 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201406190528.s5J5Sg8m099792@svn.freebsd.org> From: Hans Petter Selasky Date: Thu, 19 Jun 2014 05:28:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267633 - head/sys/sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2014 05:28:43 -0000 Author: hselasky Date: Thu Jun 19 05:28:42 2014 New Revision: 267633 URL: http://svnweb.freebsd.org/changeset/base/267633 Log: Initialize sysctl OID structure by record. MFC after: 2 weeks Modified: head/sys/sys/sysctl.h Modified: head/sys/sys/sysctl.h ============================================================================== --- head/sys/sys/sysctl.h Thu Jun 19 05:10:03 2014 (r267632) +++ head/sys/sys/sysctl.h Thu Jun 19 05:28:42 2014 (r267633) @@ -278,19 +278,16 @@ SYSCTL_ALLOWED_TYPES(UINT64, uint64_t *a /* This constructs a "raw" MIB oid. */ #define SYSCTL_OID(parent, nbr, name, kind, a1, a2, handler, fmt, descr)\ static struct sysctl_oid sysctl__##parent##_##name = { \ - &sysctl_##parent##_children, \ - { NULL }, \ - nbr, \ - kind, \ - a1, \ - a2, \ - #name, \ - handler, \ - fmt, \ - 0, \ - 0, \ - __DESCR(descr) \ - }; \ + .oid_parent = &sysctl_##parent##_children, \ + .oid_number = (nbr), \ + .oid_kind = (kind), \ + .oid_arg1 = (a1), \ + .oid_arg2 = (a2), \ + .oid_name = #name, \ + .oid_handler = (handler), \ + .oid_fmt = (fmt), \ + .oid_descr = __DESCR(descr) \ + }; \ DATA_SET(sysctl_set, sysctl__##parent##_##name) #define SYSCTL_ADD_OID(ctx, parent, nbr, name, kind, a1, a2, handler, fmt, descr) \