summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c')
-rw-r--r--src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c34
1 files changed, 15 insertions, 19 deletions
diff --git a/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c b/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c
index 7fb02283..382b0f6b 100644
--- a/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c
+++ b/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c
@@ -153,20 +153,16 @@ TEH_handler_management_auditors_AP_disable (
&dac.validity_end),
GNUNET_JSON_spec_end ()
};
- enum GNUNET_DB_QueryStatus qs;
MHD_RESULT res;
-
- {
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_json_data (connection,
- root,
- spec);
- if (GNUNET_SYSERR == res)
- return MHD_NO; /* hard failure */
- if (GNUNET_NO == res)
- return MHD_YES; /* failure */
- }
+ enum GNUNET_GenericReturnValue ret;
+
+ ret = TALER_MHD_parse_json_data (connection,
+ root,
+ spec);
+ if (GNUNET_SYSERR == ret)
+ return MHD_NO; /* hard failure */
+ if (GNUNET_NO == ret)
+ return MHD_YES; /* failure */
if (GNUNET_OK !=
TALER_exchange_offline_auditor_del_verify (
auditor_pub,
@@ -182,12 +178,12 @@ TEH_handler_management_auditors_AP_disable (
NULL);
}
- qs = TEH_DB_run_transaction (connection,
- "del auditor",
- &res,
- &del_auditor,
- &dac);
- if (qs < 0)
+ ret = TEH_DB_run_transaction (connection,
+ "del auditor",
+ &res,
+ &del_auditor,
+ &dac);
+ if (GNUNET_SYSERR == ret)
return res;
return TALER_MHD_reply_static (
connection,