From 5f0aed72e71711193f02f861b7e1e125e29cd536 Mon Sep 17 00:00:00 2001 From: TapTap Date: Mon, 10 Aug 2026 17:28:49 +0200 Subject: [PATCH] fix: satisfy metadata const analysis --- src/shared/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/file.c b/src/shared/file.c index d262311..0656a73 100644 --- a/src/shared/file.c +++ b/src/shared/file.c @@ -148,7 +148,7 @@ bool file_send_single_calls(File* file, int file_descriptor, bool use_metadata, } static bool to_disk_secure(const char* path, const void* data, unsigned long long data_size, - bool inplace, bool sparse, FileMetadata* metadata); + bool inplace, bool sparse, const FileMetadata* metadata); static int open_secure_parent(const char* path, char** leaf_out); static bool rename_secure(const char* old_path, const char* new_path); @@ -708,7 +708,7 @@ static bool write_all(int fd, const void* data, unsigned long long size) { } static bool to_disk_secure(const char* path, const void* data, unsigned long long data_size, - bool inplace, bool sparse, FileMetadata* metadata) { + bool inplace, bool sparse, const FileMetadata* metadata) { char* leaf = NULL; int dirfd = open_secure_parent(path, &leaf); if (dirfd < 0)