From owner-svn-src-head@freebsd.org Thu Jun 28 19:44:58 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7A1D21025794 for ; Thu, 28 Jun 2018 19:44:58 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE5EB8AF8E for ; Thu, 28 Jun 2018 19:44:57 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-ed1-x52d.google.com with SMTP id v22-v6so5864532edq.4 for ; Thu, 28 Jun 2018 12:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuxi-nl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=I4U+dZykUyILwCy7GViRXDQ5MxTpVHFkdjMIfpJca6Y=; b=sPWMoIckeHTbCdbj4AGAySS3e3b04tas7a5+NmlHV5dndZpb23a0YcDnJKHk3jniKO nM6eEWXCRoXkqDGa6BDN2kiVkEK8kxRsy8bIw9fonQVHacvvqhXhfDYjBcbwkAnHAfo7 JkiPnoD+zTdRJdn5IssknrPXRY7ymLuKNeQDahmPM149x9Zf7RrmOhE+WQxkDgtLjBCZ j74Cwnok8wz+H/yyo+sAZCqg0/Z/Nf6HPCR1J5LyVBSddVGY03kTKWg2BEbyYiKtjUlh au3Wuwn2coLYMOfoh0TAO6m1uaQA1BqJg6ZsUWZWUU66EbLEkCrB+CzSORdDr9gCRs5l 6jOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=I4U+dZykUyILwCy7GViRXDQ5MxTpVHFkdjMIfpJca6Y=; b=to2cbAToF4V09wFQ5wSCaVnvBwG9sXPjBIa43TBz1aKp49EK+K0W079uvSh4NF4+CJ xqoGK8Uiu/8VnVoHDpKeB7X8F2/DLOHS4fzSFh6c1BVBp+8eouqECchbmljBVA6FRe8n G6rYV2JgSJB/TZ/JkORAk4B9ytUK3TbKpwVtLwgCb/L/0Cc9VjjzGHzbgcXbCNyfOEd5 asP7dY5OUO5MUtvRWhris1M9wGdLv9U8ESxlgndMFHH/rsOJe0WxmXD2m82jIzrAxuFI OFN6FrA2QhTo4N+28fIqtrwJwD1OlI4lRO9U4PDR35U5yNzfQo2xI2Ry68WxlqeLqvTZ Y9YQ== X-Gm-Message-State: APt69E3AQ7esqSGyReN6twt04a2TizZKpz5FbfKHPpOkGVcLHca4J804 9jfDWrWObhl8oecZOWAGWp780jeyHdLvJBPb0avkCA== X-Google-Smtp-Source: AAOMgperLleYU79Jlh6RUFJhXUg22t2+adMED4dTnqLYynG111oU07IVD6TwXxDY0J5LV9/9yKPedHNYPnVKYmEMbZE= X-Received: by 2002:a50:a4c6:: with SMTP id x6-v6mr9982632edb.247.1530215096816; Thu, 28 Jun 2018 12:44:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:8e0d:0:0:0:0:0 with HTTP; Thu, 28 Jun 2018 12:44:26 -0700 (PDT) In-Reply-To: References: <201806281701.w5SH15eP011261@repo.freebsd.org> From: Ed Schouten Date: Thu, 28 Jun 2018 21:44:26 +0200 Message-ID: Subject: Re: svn commit: r335765 - head/sys/sys To: "Conrad E. Meyer" Cc: Justin Hibbits , David Bright , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.26 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, 28 Jun 2018 19:44:58 -0000 2018-06-28 21:09 GMT+02:00 Conrad Meyer : > I think the right initializer is something like: > > *(kevp_) = (struct kevent) { > ... > .ext = { > [0] = 0, > [1] = 0, > ... > }, > }; The nice thing about using an inline function is that you can get rid of the compound literal: static __inline void EV_SET(struct kevent *kevp, ...) { struct kevent kev = { // initializer goes here. }; *kevp = kev; } This should even work with C89 compilers, assuming provides some smartness for __inline. -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands