From owner-svn-src-head@freebsd.org Mon Jul 4 00:47:17 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C26BB902BD; Mon, 4 Jul 2016 00:47:17 +0000 (UTC) (envelope-from bjkfbsd@gmail.com) Received: from mail-oi0-x244.google.com (mail-oi0-x244.google.com [IPv6:2607:f8b0:4003:c06::244]) (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 2D94E2DFD; Mon, 4 Jul 2016 00:47:17 +0000 (UTC) (envelope-from bjkfbsd@gmail.com) Received: by mail-oi0-x244.google.com with SMTP id s17so21067961oih.1; Sun, 03 Jul 2016 17:47:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jBHi+L4gXs5FIxubSMcrKIeR+1Ikz8YB1Wx0Pl2I1xE=; b=suBhszZA6s9FbQXXQyMZO58sHFBXzA2vBlU8C18m2N/CQfEETXsp+EXYDZGU7H229Q JDgVoVQx9oRP61CSyGnpScT6ghs/Ae4cOxHnxi55n7kgQaOB4HkwaFDM85uYAMTVFUH3 xjz7v0Znio33y0m1qdOLss0CfJ89liZaqit5sg/tqlGQ5wkMKrWb2U9oIQov7xDTGfjB f2OBc6B1eQD7DwWppnTtibnBrerBZsE9v7lOqJquycC1ZHx7KT0lvbnUCVh/Y04BoC83 M6ja7iMQ8jXODvpWRFqIuYfK2WMM0byb+2bc51ApQQKscLY1YxGyUeAjNb0WXy8g56tw nphg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jBHi+L4gXs5FIxubSMcrKIeR+1Ikz8YB1Wx0Pl2I1xE=; b=MdhM1kGzkHQ09IEUzW2d6LE4cJaha+Yp8rre5Wb0b+QyClFWKqL/7pRx17TMe6QOeu yfXCLDnByFua50Cs81F6nE+vF/QEe9ykujDfVTwJasNDCnj2sEQDp5iYfaAAYiYvoquT W8BhrzLLEcrKRqy/ZLwFJtQPc2KHVUkSK7DzAZeG1UPwgefsK3DXxjvv+tAQAJ6OfVxw Rz1/BIBKdw8G/GGRmHIaLPGywyAPPkAYp3tyrD5RIQJHtgpFhrhhRN36S5ckG47G3Qfw RS1yi2OI7N9GOsdSXI9dvqgmt1URlhDk8jxheAUXOMgX1gv9sgqYqBQRDCLvJJgUC6Pq i7bg== X-Gm-Message-State: ALyK8tL6RvxlZJ5C4MkQOsBWXOWGYOrH9k8A2YrAvcMHPeHsbucPbPuZOCk5VowNMSd4SrOHSVnJynYG9U2Big== X-Received: by 10.157.38.207 with SMTP id i15mr5075841otd.47.1467593236444; Sun, 03 Jul 2016 17:47:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.44.176 with HTTP; Sun, 3 Jul 2016 17:47:15 -0700 (PDT) In-Reply-To: <20160702153817.O1458@besplex.bde.org> References: <201606281643.u5SGhNsi061606@repo.freebsd.org> <20160629175917.O968@besplex.bde.org> <20160629145443.GG38613@kib.kiev.ua> <20160629153233.GI38613@kib.kiev.ua> <20160630040123.F791@besplex.bde.org> <20160629211953.GK38613@kib.kiev.ua> <20160701005401.Q1084@besplex.bde.org> <20160630180106.GU38613@kib.kiev.ua> <20160701031549.GV38613@kib.kiev.ua> <20160701185743.Q1600@besplex.bde.org> <20160701142516.GW38613@kib.kiev.ua> <20160702153817.O1458@besplex.bde.org> From: Benjamin Kaduk Date: Sun, 3 Jul 2016 19:47:15 -0500 Message-ID: Subject: Re: svn commit: r302252 - head/sys/kern To: Bruce Evans Cc: Konstantin Belousov , "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 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: Mon, 04 Jul 2016 00:47:17 -0000 On Sat, Jul 2, 2016 at 3:04 AM, Bruce Evans wrote: > + .th_counter = &dummy_timecounter, >> + .th_scale = (uint64_t)-1 / 1000000, >> + .th_offset = {1, 0}, >> > > Is there a syntax for avoiding the explicit 0 in a nested initializer? > Something like th_offset.tv_sec = 1. C99 does not require complete initializers (though my habit of running with clang -Weverything does). Just .th_offset = {1} should give the desired result here. I did not think that .th_offset.tv_sec was valid, though, so when not-the-initial element is nonzero some zeros would still be needed. -Ben