From nobody Sun Jul 24 22:55:37 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 4Lrdn55psVz3yvT4; Sun, 24 Jul 2022 22:55:37 +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 4Lrdn51xVmz41MW; Sun, 24 Jul 2022 22:55:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658703337; 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=dMJq+yCZ6DdOebhaZeuJGbR9/iTjad0CCjrhoTAjqzg=; b=VI8bKSmPKvBCZH4dO4drvnyLaEi/qOUBntudmXftf237XfQuHoR9En/KFLfuevg30R9T2P 9sz68va9EiaULFbN7eK+xHc4ljUqMtL+1KaedlrYT81PY8wgWd8forFG/ySFG9zw2huG4z sOgraP9uPPseY8CRMtw/WENSSjtPvMeZCFb7q77W1Ddds8AGTHzNuKNazXqnIkk1zU+TYd Vbz+n25CDjkbRwYQqvDqKBpm0E3+T0QlgiBuOipjH9fKT8dNB78UuJQI6EpSuWRLsweo1K NZUnizG8u7p2QAXlOkpo0uDG7nZHNYN7eGDzixmpXeeEr/xbH5YHW345U2R2iQ== 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 4Lrdn511lXzbdX; Sun, 24 Jul 2022 22:55:37 +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 26OMtbPY004451; Sun, 24 Jul 2022 22:55:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OMtbCG004450; Sun, 24 Jul 2022 22:55:37 GMT (envelope-from git) Date: Sun, 24 Jul 2022 22:55:37 GMT Message-Id: <202207242255.26OMtbCG004450@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: c4f4a6c983fd - main - stand: Use c99 structure initialization for network device 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: c4f4a6c983fdadfc343344152cfc571a00a1e07a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658703337; 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=dMJq+yCZ6DdOebhaZeuJGbR9/iTjad0CCjrhoTAjqzg=; b=uiAFk1mFOwQ182sTa0snXUlcPBs4LHFdNYeqzkV/gFzqMhrpYOxr0Xbsp8x47vL2WDkZr3 4y93FJ/UMzaZD0oE4s6pf8pkv1SZOVmf9jnK1x2bXuIYWMsY0HPMKYTc1i704l3gp4QVsF WLllxkEw94ovU77HQQuRbh27OXQuiLCB4Cda5qzCS7HxKJIZi/SzTEMtVD7OCjLFL0Qa4r 3S6fxkcX0tMpJUwn7Zsfncw3LMnDEe43jb7mQiTZJvEbuZtItw8zGCXDwU0t+wSFGRd5H4 zj776zI2SDkuPB27pK2PgugrPyO3vcuBtY8h6oKv96IGJN+CHrAyR+RfWHZSaA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658703337; a=rsa-sha256; cv=none; b=lb8OVngAiKv/mGsCA8ch8eywt+f7mXQ1dMWLW9/DzEUDvBQCDBr/FoDOI4H1UbgNcHCRHx afAjqV6yJhccprM358BUi2iIgSgVbTFOgkyy1mIHl/39NVABdXQdljP/0dif6+XqqKXwnL YFsweTi8lxF0yjfCO9pcG5EjDgEuQD5D5BhAum+n2lDrfYUY/yDTIT/CYVgF3Sgj1XVphM /fGBEqLM3a1IEJ1sKuKvHU7Jj0RV1nrYpFy5q//oUkmm0iwFPWSXxFWka5CZKe2H9lXaet J2osQxFm7V5dehsNW2ySmByznnoIV/wyhSQO2BYySiriD3UCGoWjgXQLnKKj2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=c4f4a6c983fdadfc343344152cfc571a00a1e07a commit c4f4a6c983fdadfc343344152cfc571a00a1e07a Author: Warner Losh AuthorDate: 2022-07-24 21:51:32 +0000 Commit: Warner Losh CommitDate: 2022-07-24 22:53:34 +0000 stand: Use c99 structure initialization for network device Use c99 structure init for devsw. Sponsored by: Netflix --- stand/common/dev_net.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/stand/common/dev_net.c b/stand/common/dev_net.c index 70b571047d56..24bfbe9636e3 100644 --- a/stand/common/dev_net.c +++ b/stand/common/dev_net.c @@ -86,15 +86,15 @@ static int net_print(int); static int net_getparams(int sock); struct devsw netdev = { - "net", - DEVT_NET, - net_init, - net_strategy, - net_open, - net_close, - noioctl, - net_print, - net_cleanup + .dv_name = "net", + .dv_type = DEVT_NET, + .dv_init = net_init, + .dv_strategy = net_strategy, + .dv_open = net_open, + .dv_close = net_close, + .dv_ioctl = noioctl, + .dv_print = net_print, + .dv_cleanup = net_cleanup, }; static struct uri_scheme {