1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 13:25:45 +02:00

fs: Change array syntax to pointer syntax

Fixes #141
Signed-off-by: Andrey Brusnik <pixeliz3d@protonmail.com>
This commit is contained in:
Andrey Brusnik 2020-04-09 21:43:04 +03:00
parent 07e5e7bd1b
commit 9514b89405

View File

@ -316,14 +316,14 @@ namespace crucible {
BtrfsIoctlLogicalInoArgs::set_flags(uint64_t new_flags)
{
// We are still supporting building with old headers that don't have .flags yet
reserved[3] = new_flags;
*(&reserved[0] + 3) = new_flags;
}
uint64_t
BtrfsIoctlLogicalInoArgs::get_flags() const
{
// We are still supporting building with old headers that don't have .flags yet
return reserved[3];
return *(&reserved[0] + 3);
}
bool