Date: Tue, 16 Aug 2022 18:22:07 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: c4d26f027be3 - main - makefs: Style Message-ID: <202208161822.27GIM7Ie028679@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=c4d26f027be34252702e0b18c3220c5a6db3cb86 commit c4d26f027be34252702e0b18c3220c5a6db3cb86 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-08-16 17:07:46 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-08-16 18:21:44 +0000 makefs: Style Reported by: rpokala Fixes: 187084dddd3e ("makefs: Align the block buffer used in ZFS mode") Sponsored by: The FreeBSD Foundation --- usr.sbin/makefs/zfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/makefs/zfs.c b/usr.sbin/makefs/zfs.c index ab6011046b22..4e8c94afb0de 100644 --- a/usr.sbin/makefs/zfs.c +++ b/usr.sbin/makefs/zfs.c @@ -70,10 +70,11 @@ struct dnode_cursor { void zfs_prep_opts(fsinfo_t *fsopts) { + zfs_opt_t *zfs; size_t align; align = alignof(uint64_t); - zfs_opt_t *zfs = aligned_alloc(align, roundup2(sizeof(*zfs), align)); + zfs = aligned_alloc(align, roundup2(sizeof(*zfs), align)); if (zfs == NULL) err(1, "aligned_alloc"); memset(zfs, 0, sizeof(*zfs));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208161822.27GIM7Ie028679>