From 9aada52bfa8dc3e00282056f2760c92637cb58be Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 29 Apr 2025 22:17:48 +0300 Subject: Tiny improvements --- c_implementation/src/ak_fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c_implementation/src/ak_fs.c') diff --git a/c_implementation/src/ak_fs.c b/c_implementation/src/ak_fs.c index d8e8e87..8ede3f6 100644 --- a/c_implementation/src/ak_fs.c +++ b/c_implementation/src/ak_fs.c @@ -279,7 +279,7 @@ int ak_fs_ls() return 0; } -int ak_fs_cat_file_from_root_hash(sha512sum* rh) +int ak_fs_cat_file_from_root_hash(const sha512sum* rh) { const char* chunks_dir = getenv("AK_CHUNKSDIR"); if ( chunks_dir == NULL ) @@ -372,7 +372,7 @@ int ak_fs_cfm(akfs_map_v3* map) { sha512sum x; ak_fs_sha512sum_init(&x); - sha512sum *rh_ptr = ak_fs_map_v3_get_root_hash(map); + const sha512sum *rh_ptr = ak_fs_map_v3_get_root_hash(map); if ( rh_ptr == NULL ) { ak_log_debug(__func__, "No root hash found on the map"); -- cgit v1.2.3