From 9514b89405ff5dae5721db8f611cc9c9873ff276 Mon Sep 17 00:00:00 2001 From: Andrey Brusnik Date: Thu, 9 Apr 2020 21:43:04 +0300 Subject: [PATCH] fs: Change array syntax to pointer syntax Fixes #141 Signed-off-by: Andrey Brusnik --- lib/fs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fs.cc b/lib/fs.cc index c1ed054..44da207 100644 --- a/lib/fs.cc +++ b/lib/fs.cc @@ -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