From 8d312562bf04eeb2afac53a2f24624f8e48529bd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 7 Nov 2020 18:51:14 +0100 Subject: adjust ECs --- src/lib/auditor_api_handle.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/auditor_api_handle.c') diff --git a/src/lib/auditor_api_handle.c b/src/lib/auditor_api_handle.c index 5a293584f..d3cecf75b 100644 --- a/src/lib/auditor_api_handle.c +++ b/src/lib/auditor_api_handle.c @@ -212,7 +212,7 @@ decode_version_json (const json_t *resp_obj, if (JSON_OBJECT != json_typeof (resp_obj)) { GNUNET_break_op (0); - return TALER_EC_JSON_INVALID; + return TALER_EC_GENERIC_JSON_INVALID; } /* check the version */ if (GNUNET_OK != @@ -221,7 +221,7 @@ decode_version_json (const json_t *resp_obj, NULL, NULL)) { GNUNET_break_op (0); - return TALER_EC_JSON_INVALID; + return TALER_EC_GENERIC_JSON_INVALID; } if (3 != sscanf (ver, "%u:%u:%u", @@ -230,7 +230,7 @@ decode_version_json (const json_t *resp_obj, &age)) { GNUNET_break_op (0); - return TALER_EC_VERSION_MALFORMED; + return TALER_EC_GENERIC_VERSION_MALFORMED; } auditor->version = GNUNET_strdup (ver); vi->version = auditor->version; @@ -307,7 +307,7 @@ version_completed_cb (void *cls, GNUNET_break_op (0); TALER_LOG_WARNING ("NULL body for a 200-OK /version\n"); hr.http_status = 0; - hr.ec = TALER_EC_INVALID_RESPONSE; + hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE; break; } hr.ec = decode_version_json (resp_obj, -- cgit v1.2.3