summaryrefslogtreecommitdiff
path: root/src/bank-lib/fakebank.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-29 18:04:04 +0100
committerChristian Grothoff <christian@grothoff.org>2019-10-29 20:57:18 +0100
commit2696688aa31bd058ebff6610660d7e6d607c6e50 (patch)
tree41c0b34d966fe0768abc92007e6b5205a0644bc2 /src/bank-lib/fakebank.c
parent36efe024f55c3373344170f077b984f678aa4269 (diff)
downloadexchange-2696688aa31bd058ebff6610660d7e6d607c6e50.tar.gz
exchange-2696688aa31bd058ebff6610660d7e6d607c6e50.tar.bz2
exchange-2696688aa31bd058ebff6610660d7e6d607c6e50.zip
fix compiler warnings
Diffstat (limited to 'src/bank-lib/fakebank.c')
-rw-r--r--src/bank-lib/fakebank.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 4323afdc3..94e2e8d78 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -367,7 +367,9 @@ handle_mhd_completion_callback (void *cls,
enum MHD_RequestTerminationCode toe)
{
/* struct TALER_FAKEBANK_Handle *h = cls; */
-
+ (void) cls;
+ (void) connection;
+ (void) toe;
GNUNET_JSON_post_parser_cleanup (*con_cls);
*con_cls = NULL;
}
@@ -607,6 +609,8 @@ handle_home_page (struct TALER_FAKEBANK_Handle *h,
struct MHD_Response *resp;
#define HELLOMSG "Hello, Fakebank!"
+ (void) h;
+ (void) con_cls;
resp = MHD_create_response_from_buffer
(strlen (HELLOMSG),
HELLOMSG,
@@ -640,8 +644,10 @@ handle_history (struct TALER_FAKEBANK_Handle *h,
const char *delta;
struct Transaction *pos;
- if (GNUNET_OK != TFH_parse_history_common_args (connection,
- &ha))
+ (void) con_cls;
+ if (GNUNET_OK !=
+ TFH_parse_history_common_args (connection,
+ &ha))
{
GNUNET_break (0);
return MHD_NO;
@@ -666,9 +672,10 @@ handle_history (struct TALER_FAKEBANK_Handle *h,
ha.range = &hri;
if (NULL == start)
+ {
pos = 0 > hri.count ?
h->transactions_tail : h->transactions_head;
-
+ }
else if (NULL != h->transactions_head)
{
for (pos = h->transactions_head;
@@ -727,8 +734,10 @@ handle_history_range (struct TALER_FAKEBANK_Handle *h,
long long unsigned int end_stamp;
struct Transaction *pos;
- if (GNUNET_OK != TFH_parse_history_common_args (connection,
- &ha))
+ (void) con_cls;
+ if (GNUNET_OK !=
+ TFH_parse_history_common_args (connection,
+ &ha))
{
GNUNET_break (0);
return MHD_NO;
@@ -771,6 +780,7 @@ handle_history_range (struct TALER_FAKEBANK_Handle *h,
&TFH_handle_history_range_advance);
}
+
/**
* Handle incoming HTTP request.
*
@@ -796,11 +806,10 @@ handle_mhd_request (void *cls,
{
struct TALER_FAKEBANK_Handle *h = cls;
+ (void) version;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Fakebank, serving: %s\n",
url);
-
-
if ( (0 == strcasecmp (url,
"/")) &&
(0 == strcasecmp (method,