From 0777c145ea6e12405888f0707e357ffa249eada6 Mon Sep 17 00:00:00 2001 From: gmega Date: Mon, 9 Feb 2026 17:57:35 -0300 Subject: [PATCH] chore: use new interface for synchronous calls --- easystorage.c | 3 +-- tests/mock_libstorage.c | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/easystorage.c b/easystorage.c index 1404a05..2498004 100644 --- a/easystorage.c +++ b/easystorage.c @@ -229,8 +229,7 @@ int e_storage_close(STORAGE_NODE node) { int e_storage_destroy(STORAGE_NODE node) { if (!node) return RET_ERR; - resp *r = resp_alloc(); - return call_wait(storage_destroy(node, (StorageCallback) on_complete, r), r, NULL); + return storage_destroy(node); } char *e_storage_spr(STORAGE_NODE node) { diff --git a/tests/mock_libstorage.c b/tests/mock_libstorage.c index 713b823..aa8962f 100644 --- a/tests/mock_libstorage.c +++ b/tests/mock_libstorage.c @@ -47,12 +47,9 @@ int storage_close(void *ctx, StorageCallback callback, void *userData) { return RET_OK; } -int storage_destroy(void *ctx, StorageCallback callback, void *userData) { +int storage_destroy(void *ctx) { if (!ctx) return RET_ERR; - if (callback) { - callback(RET_OK, "destroyed", 9, userData); - } return RET_OK; }