diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-28 14:55:25 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-28 14:55:25 +0100 |
commit | 49d4f24f8d031a9301676196bd6a17ea3e54cb62 (patch) | |
tree | 3bb4e1a73fff39eaf68839bba723be63f3ace6ad /src/mint/test_mint_deposits.c | |
parent | ea3fac606311d1c14362d387960a4913182b629e (diff) | |
download | exchange-49d4f24f8d031a9301676196bd6a17ea3e54cb62.tar.xz |
misc cleanup, moving TALER_MINT_config_load to libtalerutil
Diffstat (limited to 'src/mint/test_mint_deposits.c')
-rw-r--r-- | src/mint/test_mint_deposits.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mint/test_mint_deposits.c b/src/mint/test_mint_deposits.c index 776bc15d2..00664cbbf 100644 --- a/src/mint/test_mint_deposits.c +++ b/src/mint/test_mint_deposits.c @@ -104,9 +104,12 @@ run (void *cls, char *const *args, const char *cfgfile, htonl (GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, UINT32_MAX)); deposit->amount.fraction = htonl (GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, UINT32_MAX)); - strcpy (deposit->amount.currency, "EUR"); + GNUNET_assert (strlen (MINT_CURRENCY) < sizeof (deposit->amount.currency)); + strcpy (deposit->amount.currency, MINT_CURRENCY); /* Copy wireformat */ - (void) memcpy (deposit->wire, wire, sizeof (wire)); + memcpy (deposit->wire, + wire, + sizeof (wire)); EXITIF (GNUNET_OK != TALER_MINT_DB_insert_deposit (conn, deposit)); EXITIF (GNUNET_OK != TALER_MINT_DB_get_deposit (conn, |