From owner-svn-src-all@freebsd.org Thu Jun 28 19:44:58 2018 Return-Path: Delivered-To: svn-src-all@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 A54FA1025797 for ; Thu, 28 Jun 2018 19:44:58 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (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 1E11E8AF92 for ; Thu, 28 Jun 2018 19:44:58 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-ed1-x52b.google.com with SMTP id r17-v6so5861625edo.13 for ; Thu, 28 Jun 2018 12:44:58 -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=iukElI6yGy/3tqXNLHZaPrboRh/L73eyGm4hwVhLYzSkiNsb7HXoGg1lm43m8YJjY2 eFHlPjQckwrsnRp3QfiaRNq7gPbeLZBlfjQi9pNBOOFiedB6dGbkyHiNM2Lf7W5s6cTx bFVVkc1F+vEnO0dObx5VR/SXG1mmswpPYMLoBIPEaurb2gvdG+9dAQP2rEywhvUfgemp aeTp65rD5c7ie8Uy5Zx4Z/76EkaSSZi0pP3/9oUVX5XTYrruBnIjeeAyFWza1gGoYtmV EH4YsAe1IUZF3r/4Kfp/Ilw5dPXk+FzgMGO4llOL5NpU9g9vblfWQPTb5wPNRwlPHiAk tc0Q== X-Gm-Message-State: APt69E2e70eMZ9TV1IuRrrcREOkNE+TSyFrUQilgrDN2qCN1Xoh9WANd bpRzmWsj1YEYvuMnCH2PMQ7cfMzisjFASAcP1sB7Yw== 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-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" 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