diff options
author | José Bollo <jose.bollo@iot.bzh> | 2019-08-14 10:50:18 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-08-14 10:50:18 +0200 |
commit | 025eb772b32a66c3f4c9fd528ae8cc19bc536bb1 (patch) | |
tree | f6162809c97d28ab411e0827f63e124e133a152b | |
parent | 757606ffa7cbfa210d358d3ac765b55c4818f5ed (diff) |
lib-compat: Improve debugability
Change-Id: I2fa317b494f02c2725886a9874af340337b082cb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/lib-compat.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib-compat.c b/src/lib-compat.c index 8f27cf3..eb98895 100644 --- a/src/lib-compat.c +++ b/src/lib-compat.c @@ -447,8 +447,10 @@ void cynara_async_finish(cynara_async *p_cynara) int cynara_async_check_cache(cynara_async *p_cynara, const char *client, const char *client_session, const char *user, const char *privilege) { + int rc; rcyn_key_t key = { client, client_session, user, privilege }; - return from_check_status(rcyn_cache_check(p_cynara->rcyn, &key)); + rc = from_check_status(rcyn_cache_check(p_cynara->rcyn, &key)); + return rc; } static void reqcb(void *closure, int status) @@ -500,7 +502,9 @@ int cynara_async_create_request(cynara_async *p_cynara, const char *client, cynara_check_id *p_check_id, cynara_response_callback callback, void *user_response_data) { - return create_reqasync(p_cynara, client, client_session, user, privilege, p_check_id, callback, user_response_data, false); + int rc; + rc = create_reqasync(p_cynara, client, client_session, user, privilege, p_check_id, callback, user_response_data, false); + return rc; } int cynara_async_create_simple_request(cynara_async *p_cynara, const char *client, @@ -508,13 +512,17 @@ int cynara_async_create_simple_request(cynara_async *p_cynara, const char *clien const char *privilege, cynara_check_id *p_check_id, cynara_response_callback callback, void *user_response_data) { - return create_reqasync(p_cynara, client, client_session, user, privilege, p_check_id, callback, user_response_data, true); + int rc; + rc = create_reqasync(p_cynara, client, client_session, user, privilege, p_check_id, callback, user_response_data, true); + return rc; } int cynara_async_process(cynara_async *p_cynara) { - return rcyn_async_process(p_cynara->rcyn); + int rc; + rc = rcyn_async_process(p_cynara->rcyn); + return rc; } int cynara_async_cancel_request(cynara_async *p_cynara, cynara_check_id check_id) |