summaryrefslogtreecommitdiff
path: root/src/mintdb/plugin_mintdb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-08-17 22:45:17 +0200
committerChristian Grothoff <christian@grothoff.org>2015-08-17 22:45:17 +0200
commite0b587b4946339ad3ea4bc72b770837541c5d09e (patch)
treebbfab5f7d07405fbd82d12cfd4e304e4be79f31b /src/mintdb/plugin_mintdb_postgres.c
parent0a1491562c846ce5b2a6b5861f3d3dc8a08972a5 (diff)
downloadexchange-e0b587b4946339ad3ea4bc72b770837541c5d09e.tar.gz
exchange-e0b587b4946339ad3ea4bc72b770837541c5d09e.tar.bz2
exchange-e0b587b4946339ad3ea4bc72b770837541c5d09e.zip
use proper function for uint16 handling
Diffstat (limited to 'src/mintdb/plugin_mintdb_postgres.c')
-rw-r--r--src/mintdb/plugin_mintdb_postgres.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c
index aaa1c9016..35213d961 100644
--- a/src/mintdb/plugin_mintdb_postgres.c
+++ b/src/mintdb/plugin_mintdb_postgres.c
@@ -2231,10 +2231,9 @@ postgres_get_refresh_melt (void *cls,
struct TALER_CoinSpendSignatureP coin_sig;
struct TALER_Amount amount_with_fee;
struct TALER_Amount melt_fee;
- uint16_t oldcoin_index_nbo = htons (oldcoin_index);
struct TALER_PQ_QueryParam params[] = {
TALER_PQ_query_param_auto_from_type (session_hash),
- TALER_PQ_query_param_auto_from_type (&oldcoin_index_nbo),
+ TALER_PQ_query_param_uint16 (&oldcoin_index),
TALER_PQ_query_param_end
};
int nrows;