summaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_db.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-27 14:55:05 +0100
committerChristian Grothoff <christian@grothoff.org>2015-01-27 14:55:05 +0100
commitbda9e3ad94b4ede04ed3886dd8097b35a868eef5 (patch)
treea06a801b9c8f0c1fb61ea595d9633d61e93bbf99 /src/mint/taler-mint-httpd_db.c
parent986a89ea4f166567ad2890009d43fd0042bdf142 (diff)
downloadexchange-bda9e3ad94b4ede04ed3886dd8097b35a868eef5.tar.gz
exchange-bda9e3ad94b4ede04ed3886dd8097b35a868eef5.tar.bz2
exchange-bda9e3ad94b4ede04ed3886dd8097b35a868eef5.zip
towards making code compile again
Diffstat (limited to 'src/mint/taler-mint-httpd_db.c')
-rw-r--r--src/mint/taler-mint-httpd_db.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mint/taler-mint-httpd_db.c b/src/mint/taler-mint-httpd_db.c
index 78946f50f..4ddefb4ab 100644
--- a/src/mint/taler-mint-httpd_db.c
+++ b/src/mint/taler-mint-httpd_db.c
@@ -821,11 +821,10 @@ helper_refresh_reveal_send_response (struct MHD_Connection *connection,
sizeof (struct GNUNET_CRYPTO_rsa_Signature *));
for (newcoin_index = 0; newcoin_index < refresh_session->num_newcoins; newcoin_index++)
{
- res = TALER_MINT_DB_get_refresh_collectable (db_conn,
- newcoin_index,
- refresh_session_pub,
- &sigs[newcoin_index]);
- if (GNUNET_OK != res)
+ sigs[newcoin_index] = TALER_MINT_DB_get_refresh_collectable (db_conn,
+ newcoin_index,
+ refresh_session_pub);
+ if (NULL == sigs[newcoin_index])
{
// FIXME: return 'internal error'
GNUNET_break (0);
@@ -1014,8 +1013,8 @@ TALER_MINT_db_execute_refresh_reveal (struct MHD_Connection *connection,
// FIXME: return error code!
return MHD_NO;
}
- res = TALER_MINT_DB_get_refresh_order (db_conn, j, refresh_session_pub, &denom_pub);
- if (GNUNET_OK != res)
+ denom_pub = TALER_MINT_DB_get_refresh_order (db_conn, j, refresh_session_pub);
+ if (NULL == denom_pub)
{
GNUNET_break (0);
// FIXME: return error code!