makefs: Style
Reported by: rpokala
Fixes: 187084dddd
("makefs: Align the block buffer used in ZFS mode")
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
8ddb146abc
commit
c4d26f027b
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user