From d0c35b4734af14c2e54c6bfc1360a06afd18876b Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Mon, 13 Dec 2021 23:47:19 -0500 Subject: [PATCH] fs: yet another const References to the search key do not need to be modified. Signed-off-by: Zygo Blaxell --- lib/fs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fs.cc b/lib/fs.cc index 4f1265a..52d4930 100644 --- a/lib/fs.cc +++ b/lib/fs.cc @@ -783,7 +783,7 @@ namespace crucible { // ioctl buffer size does not include search key header or buffer size ioctl_arg = ByteVector(buf_size + sizeof(btrfs_ioctl_search_args_v2)); ioctl_ptr = ioctl_arg.get(); - ioctl_ptr->key = static_cast(*this); + ioctl_ptr->key = static_cast(*this); ioctl_ptr->buf_size = buf_size; // Don't bother supporting V1. Kernels that old have other problems. int rv = ioctl(fd, BTRFS_IOC_TREE_SEARCH_V2, ioctl_arg.data());