summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-30 14:07:27 +0100
committerChristian Grothoff <christian@grothoff.org>2015-01-30 14:07:27 +0100
commitabe597c0740b81e8ed79250842518c3b8d5ba53f (patch)
tree0216a956dddb77b504e68b974107f4241e233f47
parent494d9042381b39ce89cfc2d1312482e9907105fb (diff)
downloadexchange-abe597c0740b81e8ed79250842518c3b8d5ba53f.tar.gz
exchange-abe597c0740b81e8ed79250842518c3b8d5ba53f.tar.bz2
exchange-abe597c0740b81e8ed79250842518c3b8d5ba53f.zip
fix missing test, wrong type
-rw-r--r--src/mint/taler-mint-httpd_keystate.c2
-rw-r--r--src/mint/taler-mint-httpd_responses.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/mint/taler-mint-httpd_keystate.c b/src/mint/taler-mint-httpd_keystate.c
index 210262e6c..0e5f5bb0f 100644
--- a/src/mint/taler-mint-httpd_keystate.c
+++ b/src/mint/taler-mint-httpd_keystate.c
@@ -385,7 +385,7 @@ TALER_MINT_get_denom_key (const struct MintKeyState *key_state,
static void
handle_signal (int signal_number)
{
- size_t res;
+ ssize_t res;
char c = signal_number;
if (SIGUSR1 == signal_number)
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c
index 2c46a3246..c9607a221 100644
--- a/src/mint/taler-mint-httpd_responses.c
+++ b/src/mint/taler-mint-httpd_responses.c
@@ -283,8 +283,9 @@ TALER_MINT_reply_deposit_success (struct MHD_Connection *connection,
dc.amount = TALER_amount_hton (*amount);
dc.coin_pub = *coin_pub;
dc.merchant = *merchant;
- TALER_MINT_keys_sign (&dc.purpose,
- &sig);
+ if (GNUNET_OK !=
+ TALER_MINT_keys_sign (&dc.purpose,
+ &sig))
{
LOG_WARNING ("Failed to create EdDSA signature using my private key\n");
return TALER_MINT_reply_internal_error (connection,