style fix

This commit is contained in:
Christian Grothoff 2023-03-08 11:52:44 +01:00
parent b7e20eb71e
commit 21c9dae382
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 10 additions and 18 deletions

View File

@ -234,12 +234,10 @@ TEH_handler_csr_withdraw (struct TEH_RequestContext *rc,
.cipher = TALER_DENOMINATION_CS .cipher = TALER_DENOMINATION_CS
}; };
struct GNUNET_JSON_Specification spec[] = { struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_fixed ("nonce", GNUNET_JSON_spec_fixed_auto ("nonce",
&nonce, &nonce),
sizeof (struct TALER_CsNonce)), GNUNET_JSON_spec_fixed_auto ("denom_pub_hash",
GNUNET_JSON_spec_fixed ("denom_pub_hash", &denom_pub_hash),
&denom_pub_hash,
sizeof (struct TALER_DenominationHashP)),
GNUNET_JSON_spec_end () GNUNET_JSON_spec_end ()
}; };
struct TEH_DenominationKey *dk; struct TEH_DenominationKey *dk;
@ -333,17 +331,11 @@ TEH_handler_csr_withdraw (struct TEH_RequestContext *rc,
} }
} }
{ return TALER_MHD_REPLY_JSON_PACK (
json_t *csr_obj; rc->connection,
MHD_HTTP_OK,
csr_obj = GNUNET_JSON_PACK ( TALER_JSON_pack_exchange_withdraw_values ("ewv",
TALER_JSON_pack_exchange_withdraw_values ("ewv", &ewv));
&ewv));
GNUNET_assert (NULL != csr_obj);
return TALER_MHD_reply_json_steal (rc->connection,
csr_obj,
MHD_HTTP_OK);
}
} }

View File

@ -738,7 +738,7 @@ free_denom_cb (void *cls,
* @param value the `struct HelperSignkey` to release * @param value the `struct HelperSignkey` to release
* @return #GNUNET_OK (continue to iterate) * @return #GNUNET_OK (continue to iterate)
*/ */
static int static enum GNUNET_GenericReturnValue
free_esign_cb (void *cls, free_esign_cb (void *cls,
const struct GNUNET_PeerIdentity *pid, const struct GNUNET_PeerIdentity *pid,
void *value) void *value)