aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-05-01 09:59:24 +0200
committerChristian Grothoff <christian@grothoff.org>2015-05-01 09:59:24 +0200
commit8bd435d7ee73bd9cfc3265e161d5e847aac1f5ee (patch)
treea33873d0e3408ab2f02a2cbc375dc86ccbc64e58
parente4bd4aba8d057497702151cb9c72a8ad110a3c45 (diff)
downloadmerchant-8bd435d7ee73bd9cfc3265e161d5e847aac1f5ee.tar.gz
merchant-8bd435d7ee73bd9cfc3265e161d5e847aac1f5ee.tar.bz2
merchant-8bd435d7ee73bd9cfc3265e161d5e847aac1f5ee.zip
minor bugfixes
-rw-r--r--src/merchant/taler_merchant_serve.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/merchant/taler_merchant_serve.c b/src/merchant/taler_merchant_serve.c
index b025052c..e6d5f887 100644
--- a/src/merchant/taler_merchant_serve.c
+++ b/src/merchant/taler_merchant_serve.c
@@ -811,7 +811,10 @@ handle_get_contract (struct MHD_Connection *connection,
nounce = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_NONCE, UINT64_MAX);
/* Prepare contract */
- GNUNET_asprintf (&desc, template, hostname, port);
+ (void) GNUNET_asprintf (&desc,
+ template,
+ hostname,
+ port);
contract_id = MERCHANT_DB_contract_create (db_conn,
expiry,
&amount,
@@ -968,7 +971,7 @@ checkout_status (void *cls, int status, json_t *obj, char *emsg)
char *download_page;
char *location;
struct MHD_Response *resp;
- ssize_t size;
+ int size;
LOG_DEBUG ("Processing checkout request reply\n");
GNUNET_SCHEDULER_cancel (ctx->timeout_task);
@@ -1385,7 +1388,7 @@ build_list_product_response ()
struct Download *dwn;
size_t size;
unsigned int cnt;
- unsigned int psize;
+ int psize;
unsigned int header_size;
unsigned int footer_size;
unsigned int *partial_sizes;