mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
tests/sys/fs/ufs/sync_test.c: hide the alignment warning
Reported and tested by: dhw
Fixes: afe1dec742 ("tests: add UFS synchronous write durability tests")
Sponsored by: The FreeBSD Foundation
This commit is contained in:
1 parent
b951994edd
commit
af08f29e5f
1 file changed
+2
-2
@@ -223,8 +223,8 @@ ondisk_read(ino_t ino, int lbn, struct ondisk *od)
|
||||
ATF_REQUIRE(bread(&disk, fsbtodb(fs, ib), buf,
|
||||
fs->fs_bsize) == fs->fs_bsize);
|
||||
od->blkno = disk.d_ufs == 1 ?
|
||||
((ufs1_daddr_t *)buf)[lbn - UFS_NDADDR] :
|
||||
((ufs2_daddr_t *)buf)[lbn - UFS_NDADDR];
|
||||
__DECONST(ufs1_daddr_t *, buf)[lbn - UFS_NDADDR] :
|
||||
__DECONST(ufs2_daddr_t *, buf)[lbn - UFS_NDADDR];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user