From nobody Tue Nov 29 21:49:45 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NMGG12JrRz4hcRb; Tue, 29 Nov 2022 21:49:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NMGG11qFmz3k5y; Tue, 29 Nov 2022 21:49:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669758585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I8nuxPjWbPDLLuvAAca/zyf4cPiJac8UAlFueGAmhXY=; b=YuME1zZl5sD7DOD7bTZ7WJW3eBkhXKYEmmiCpUFHHOplL5qnNDbQ8DDCHYRo5nX4u0ICag PGGB3kzgqjnAl4mSnXFQnjHFpayuIZz77cELzYU6DeROi6RmMXROy7zjKJKBRyXEKVjRcX APg9s8u+TwQr4XOdd6fsWT2eEuTRNXcIHruFpP9yIy8SxQbgqTDGGZIK6zuOeMU/5PSaxK FUmBftpkrMKQBR9Y+5FEbKm8zfuSJArySfLP4h8iYivpuvPRqFJ0+uWG2l8nlT6eYuE7bN cd+QJE0elmT4lreLVfA/MLxSCvyr7CZvAcWbEtaKZ++4Mhw9Cn//TNCLHE04mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669758585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I8nuxPjWbPDLLuvAAca/zyf4cPiJac8UAlFueGAmhXY=; b=oDIN7UjRY6Znv7KEKYwD7hO6y349GIlbPJbJalOqkafbYDA8GGSiNDmh7xDL6VTa+mGFM7 x29bxowfox26Swg4ICx+rtSC5soSffccyhpTUPZGr9C/ETnmwyiHMmLx6K5S9etA5JpSwh lvWoPdXJxlmvlbk8iL98VxIUVGLKAqSaQw3quKJOf6gKnpQVvihROspgSVTQhwNPF1q2bv iOHIZWLkSoLVFV8lceC8QKRM4IIMaVKaIw0gEhDlPpAqBFitw3vvNbhbsYvFnTlBI6oXLl XA7ilDROy2IskQvBglebFGmIoYcdZuYsH7tTH+btiqg6d3gbfpjjvK5dfArLcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669758585; a=rsa-sha256; cv=none; b=L7AdRRitjcQX9dilxYGKHWmpFza8LDf3pX8i3Kf2haaVyHH+U+Ssj51M3mEbIKz6tNpMxL f2vUPMTiSAyKXq8TvBHC5y50pQi89QlnHI+y5hE0SN7Dx0rqDxt3aD3pS5tQWF0qyuHFEo ZrL9JT9Vw5RK+c9HPqLXFt5jXIFYqup4UvLraBva/f1YTwZmeQ7b3kAKzrEQFHKddfFsL1 9BJRNhWCGhxO2FuUHvpglLVXbp6RcirJzxe6qgZOdq5hxDcU/3vBh8Jf1c7ODihCJoCbI9 NXcb+7tXm600Cv8AIjTXSbrVklAMqpFdVeJj9+TdUpRQTATF/0ly9Fe5QVN5iw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NMGG10tbqzXbd; Tue, 29 Nov 2022 21:49:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2ATLnj7J098248; Tue, 29 Nov 2022 21:49:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ATLnjDL098247; Tue, 29 Nov 2022 21:49:45 GMT (envelope-from git) Date: Tue, 29 Nov 2022 21:49:45 GMT Message-Id: <202211292149.2ATLnjDL098247@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 4c4563e32dfc - main - ofw_net: Use c99 initializers List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4c4563e32dfce0652953fcbd160a9dfdda050cc4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=4c4563e32dfce0652953fcbd160a9dfdda050cc4 commit 4c4563e32dfce0652953fcbd160a9dfdda050cc4 Author: Warner Losh AuthorDate: 2022-11-29 21:47:02 +0000 Commit: Warner Losh CommitDate: 2022-11-29 21:49:06 +0000 ofw_net: Use c99 initializers Update to use c99 initializers, although there's no plans to change anything that this would make easier... Sponsored by: Netflix Reviewed by: zlei Differential Revision: https://reviews.freebsd.org/D37442 --- stand/libofw/ofw_net.c | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/stand/libofw/ofw_net.c b/stand/libofw/ofw_net.c index 643f989d5018..fa4a3abd88e8 100644 --- a/stand/libofw/ofw_net.c +++ b/stand/libofw/ofw_net.c @@ -53,22 +53,26 @@ static void ofwn_end(struct netif *); extern struct netif_stats ofwn_stats[]; struct netif_dif ofwn_ifs[] = { - /* dif_unit dif_nsel dif_stats dif_private */ - { 0, 1, &ofwn_stats[0], 0, }, + { + .dif_unit=0, + .dif_nsel=1, + .dif_stats=&ofwn_stats[0], + .dif_private=0, + }, }; struct netif_stats ofwn_stats[nitems(ofwn_ifs)]; struct netif_driver ofwnet = { - "net", /* netif_bname */ - ofwn_match, /* netif_match */ - ofwn_probe, /* netif_probe */ - ofwn_init, /* netif_init */ - ofwn_get, /* netif_get */ - ofwn_put, /* netif_put */ - ofwn_end, /* netif_end */ - ofwn_ifs, /* netif_ifs */ - nitems(ofwn_ifs) /* netif_nifs */ + .netif_bname="net", + .netif_match=ofwn_match, + .netif_probe=ofwn_probe, + .netif_init=ofwn_init, + .netif_get=ofwn_get, + .netif_put=ofwn_put, + .netif_end=ofwn_end, + .netif_ifs=ofwn_ifs, + .netif_nifs=nitems(ofwn_ifs) }; static ihandle_t netinstance;