From 7213c50ad9d7122b66da05a2878218f7ce8a09e7 Mon Sep 17 00:00:00 2001
From: "roman.khlopkov" <roman.khlopkov@demlabs.net>
Date: Mon, 12 Aug 2024 19:29:26 +0300
Subject: [PATCH] [*] Cjmpiler warnings fix

---
 modules/chain/dap_chain_cell.c              | 2 +-
 modules/type/blocks/dap_chain_block_cache.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/chain/dap_chain_cell.c b/modules/chain/dap_chain_cell.c
index 2916b0fe40..9ce2968863 100644
--- a/modules/chain/dap_chain_cell.c
+++ b/modules/chain/dap_chain_cell.c
@@ -524,7 +524,7 @@ static int s_cell_file_atom_add(dap_chain_cell_t *a_cell, dap_chain_atom_ptr_t a
         return -2;
     }
     if (fwrite(a_atom, a_atom_size, 1, a_cell->file_storage) != 1) {
-        log_it(L_ERROR, "Can't write atom (%zu b) to file \"%s\", err %ld: \"%s\"",
+        log_it(L_ERROR, "Can't write atom (%zu b) to file \"%s\", err %d: \"%s\"",
                         a_atom_size, a_cell->file_storage_path, errno, dap_strerror(errno) );
         return -3;
     }
diff --git a/modules/type/blocks/dap_chain_block_cache.c b/modules/type/blocks/dap_chain_block_cache.c
index b329e6d776..35bbb195ad 100644
--- a/modules/type/blocks/dap_chain_block_cache.c
+++ b/modules/type/blocks/dap_chain_block_cache.c
@@ -114,7 +114,7 @@ int dap_chain_block_cache_update(dap_chain_block_cache_t *a_block_cache, dap_has
     else
         dap_hash_fast(a_block_cache->block, a_block_cache->block_size, &a_block_cache->block_hash);
 
-    dap_hash_fast_to_str(&a_block_cache->block_hash, &a_block_cache->block_hash_str, DAP_CHAIN_HASH_FAST_STR_SIZE);
+    dap_hash_fast_to_str(&a_block_cache->block_hash, a_block_cache->block_hash_str, DAP_CHAIN_HASH_FAST_STR_SIZE);
 
     if (dap_chain_block_meta_extract(a_block_cache->block, a_block_cache->block_size,
                                         &a_block_cache->prev_hash,
-- 
GitLab