diff options
-rw-r--r-- | c_implementation/include/libakfs.h | 2 | ||||
-rw-r--r-- | c_implementation/src/ak_fs.c | 4 | ||||
-rw-r--r-- | c_implementation/src/ak_fs_main.c | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/c_implementation/include/libakfs.h b/c_implementation/include/libakfs.h index f223c28..3eb0ba3 100644 --- a/c_implementation/include/libakfs.h +++ b/c_implementation/include/libakfs.h @@ -421,7 +421,7 @@ bool ak_fs_mt_branch_compare(mt_branch*, mt_branch*); * @param sha512sum* * @return int status */ -int ak_fs_cat_file_from_root_hash(sha512sum*); +int ak_fs_cat_file_from_root_hash(const sha512sum*); /** * Concatenates a file from a akfs_map_v3 map 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"); diff --git a/c_implementation/src/ak_fs_main.c b/c_implementation/src/ak_fs_main.c index b25e308..e399544 100644 --- a/c_implementation/src/ak_fs_main.c +++ b/c_implementation/src/ak_fs_main.c @@ -6,7 +6,8 @@ static int ak_fs_usage() { ak_log_debug(__func__, "Available commands:"); - ak_log_debug(__func__, "ak fs --list"); + ak_log_debug(__func__, "akfs --list"); + ak_log_debug(__func__, "akfs --cfm <map hash>"); return 1; } |