From owner-svn-src-all@freebsd.org Wed Mar 7 15:44:38 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 621D9F38B29; Wed, 7 Mar 2018 15:44:38 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io0-x236.google.com (mail-io0-x236.google.com [IPv6:2607:f8b0:4001:c06::236]) (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 DA88D7BD60; Wed, 7 Mar 2018 15:44:37 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io0-x236.google.com with SMTP id 30so3503086iog.2; Wed, 07 Mar 2018 07:44:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=35JU3Efgmew9okbmhZpYfrugadmaCLTDmPkNm5R+bPM=; b=I922KV8Y/9TOwVfU+btmN8CjNpSSyNqCTYVm+wxvwNBR93q8SJrVcHTWYTlMIfkQJ+ SSsLCyOS3uBGfrfMl/3lP7Xp7NhTSCj7QQM7tBpvXtDYoRCG+xvWPenQK6cPVw2tX+yZ T7r0Ptuk8Qe+UfpNvZgOV4uj7dVzIPQcSs9XhkJwPCj8cMdLv4qCii0BDLnwWc1IOKhF yu1MXcrg4XoIb/OVnFNgtucwBRUz+mOo96aaEDcF/iqG8DxBIkISfRqbC7O8fGXBo4c/ UYBqTO2Aj8v8o8imRhzaBadEb0L0PW2DPVD1lEf5WXbw+i3Qta9ToQAEfZRvVhgYedfx jH+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=35JU3Efgmew9okbmhZpYfrugadmaCLTDmPkNm5R+bPM=; b=DaqFEnX4nO3M2BDWifGs1A173WAQRqsiVOkD3iqJv55FnghQfK1bZ3FqQOp5ZOcyjD eEJvH5nFx/NjA8mVncZIlVtEUxy/3mCzCR0VZ2EKIFGNY2tXIlyqQ58sEDpdkiHbXWNp adSayWOR250O4QFajTErhTvwN5cRpOa8B5eUXHZLsKqRDl0xiaN4jYzBuQi2JCj7TBLn 2jGUMrzUhBnuv88NlC93TYCrDIHzFUD+RXSqkmbXLxzJTQxixA50i1ReTgwGRzen35Jr 6m6vc9PBgTJeJzltE190onm38NCpCjbnIf0h0sYeGmL8wHuLI5UWXfjMy4/rTQaVHDb3 SkzQ== X-Gm-Message-State: AElRT7FYjXf1QzjhPFHEtMY9cBE5aM8aMbm+M1GvrbPy5Re9u9XQfzWz +8jCeZcJu69bakaLmZTNeWgO4j2vCSQO/lS00SXCC1Jo X-Google-Smtp-Source: AG47ELuH7omvMn1iNF2sB1vhozjcYPWqhUqy1fwIVUC6tIBxZCtrlwt3Ath1dVHH3BBtQAb60EoBzG4JS4ylawoH6Oo= X-Received: by 10.107.134.95 with SMTP id i92mr26300209iod.210.1520437476924; Wed, 07 Mar 2018 07:44:36 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.163.13 with HTTP; Wed, 7 Mar 2018 07:44:14 -0800 (PST) In-Reply-To: <201803071447.w27Elh7C053393@repo.freebsd.org> References: <201803071447.w27Elh7C053393@repo.freebsd.org> From: Ed Maste Date: Wed, 7 Mar 2018 10:44:14 -0500 X-Google-Sender-Auth: UukLoBVTnKXvJp4Sj2uEwIUC3Z0 Message-ID: Subject: Re: svn commit: r330602 - head/sys/compat/cloudabi To: Eitan Adler Cc: 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.25 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: Wed, 07 Mar 2018 15:44:38 -0000 On 7 March 2018 at 09:47, Eitan Adler wrote: > Author: eadler > Date: Wed Mar 7 14:47:43 2018 > New Revision: 330602 > URL: https://svnweb.freebsd.org/changeset/base/330602 > > Log: > sys/cloudabi: Avoid relying on GNU specific extensions > > An empty initializer list is not technically valid C grammar. > > MFC After: 1 week > > - cloudabi_fdstat_t fsb = {}; > + cloudabi_fdstat_t fsb = {0}; In practice it appears initializing via { 0 } also zeros any padding in the struct, but I do not believe it's required by the C standard. Perhaps a language lawyer can weigh in? Commenting on this commit just because it's highlighted by this change; I do not believe there's a difference between the GNU extension { } and { 0 } here.