From nobody Sun Jul 24 22:55:41 2022 X-Original-To: dev-commits-src-main@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 4LrdnB1S5vz3yvWc; Sun, 24 Jul 2022 22:55:42 +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 4Lrdn95kwkz41T3; Sun, 24 Jul 2022 22:55:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658703341; 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=37Vw+he2+/Py5Q/o00BM/xz7/Y6qSUguooNZDypR93c=; b=R0fDp+WohtG4Vu3qSxyGiVJRgI1ZaCqLPtl7gxZw1mwjFKptVWsIbB104an+Mp559w8364 topc2VW3/e1TFUSjopjZXhwbcFEeERaLSoB3+3uhKBlUNauoWN9wFmSvdkyk5zOVklGEaN 9DseAEU4fgn33IZIbFctDTcKA3nJ1NTTtXXOzoO66PwVevrGI6lGYqnkC9zRm2/u5FJ7Hn 2O64XQ6AKXiceaGs3bVfZvzzbSwQ69TZ6MwQCsbapskpgpazgWiQ5px28NpXuHP4XNb+Y7 0oKLx9AYhW8PcAIt+YTl+0tt6zNDA1vu2mmZWDhpC/pOJTcwHgdcGuku+zHoRw== 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 4Lrdn94rnjzbD7; Sun, 24 Jul 2022 22:55:41 +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 26OMtfl0004548; Sun, 24 Jul 2022 22:55:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OMtfKm004547; Sun, 24 Jul 2022 22:55:41 GMT (envelope-from git) Date: Sun, 24 Jul 2022 22:55:41 GMT Message-Id: <202207242255.26OMtfKm004547@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: e7d045aa2b27 - main - stand: Use c99 structure initialization for pkgfs_fsops List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: e7d045aa2b270d2026ad6c15639673ea6d01c7b4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658703341; 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=37Vw+he2+/Py5Q/o00BM/xz7/Y6qSUguooNZDypR93c=; b=gsZBGbwNUoKN9Q0Dns3UkLmQdb8xKpdTznrABGBWekNQVjrs8/N53XOnlx6gorTPC3heiV Zivpv0h0qVzcmKMrj6gLrro4oqEQ7I+zmrRCvoVc4lgTmKa4VUaIsD69REGD0HohQxWrcO ++A4fB3Q2SXQYsySKad6ygs6k2ubbS9dvks4KyvnkMYieaWA8B0YYcb3KzvV5MImn2l0jq lb/TT2PQOjviCrkLtc1V88S6GNCYrrYGYD33sSoTIitVVqU84aCY+tmHIC0As/UmW50bMa Qi4/Xd9Hn00QjucWor8d+N8UiExV4HKyTQLm3jtvAu6DfYoHCMfR1zJ66RAnew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658703341; a=rsa-sha256; cv=none; b=uF7+Rm5/NTG3SIjh2fBvUJj/fRZBo3j5NSlDLoFHjvuWGpxsbcfmhJPoEws7+YPPbvnE0h xkGTIN1jZ+mEhhwsAWfQqAdMD8Li2JzEuc2jFrsUrm7Cl+Igg3V+VfNgSn30AaGCfMSnU4 4zDuzY64IoTdyvyoxPAVyQGmqti1nBBkguUtY9a76KKiJZWUPKE4AJ9XkJeW7xTyeV+O/O cvxn3y/FckKAtyU4DXDmV/4Ho78Gv4UjVVciVuicl6nEG40HG/Wwid+hfw879qf43We3Jb 9hSP9TE/TQuwHCcwFAvstKs/ytfVS8c0lhuz7IaZdWBCuWyPBVySEIjRHCz28g== 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=e7d045aa2b270d2026ad6c15639673ea6d01c7b4 commit e7d045aa2b270d2026ad6c15639673ea6d01c7b4 Author: Warner Losh AuthorDate: 2022-07-24 21:51:42 +0000 Commit: Warner Losh CommitDate: 2022-07-24 22:53:35 +0000 stand: Use c99 structure initialization for pkgfs_fsops Sponsored by: Netflix --- stand/libsa/pkgfs.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/stand/libsa/pkgfs.c b/stand/libsa/pkgfs.c index ffa16309ee6a..9d98e48d9a84 100644 --- a/stand/libsa/pkgfs.c +++ b/stand/libsa/pkgfs.c @@ -49,14 +49,14 @@ static int pkg_readdir(struct open_file *, struct dirent *); static off_t pkg_atol(const char *, unsigned); struct fs_ops pkgfs_fsops = { - "pkg", - pkg_open, - pkg_close, - pkg_read, - null_write, - pkg_seek, - pkg_stat, - pkg_readdir + .fs_name = "pkg", + .fo_open = pkg_open, + .fo_close = pkg_close, + .fo_read = pkg_read, + .fo_write = null_write, + .fo_seek = pkg_seek, + .fo_stat = pkg_stat, + .fo_readdir = pkg_readdir, }; #define PKG_BUFSIZE 512