summaryrefslogtreecommitdiff
path: root/src/bank-lib
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-04-08 00:33:57 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2019-04-08 02:37:45 +0200
commit704e0913c62e4d2435cf46f911152820c19592f3 (patch)
treebbe7694f9c5fa36ee949c44eca71e9c230eb0b15 /src/bank-lib
parentddb8cdfa7a2d0bb297ab8190fd17575d916beaf4 (diff)
downloadexchange-704e0913c62e4d2435cf46f911152820c19592f3.tar.gz
exchange-704e0913c62e4d2435cf46f911152820c19592f3.tar.bz2
exchange-704e0913c62e4d2435cf46f911152820c19592f3.zip
Fix compilation warnings, + enable polymorphic /history handler.
Diffstat (limited to 'src/bank-lib')
-rw-r--r--src/bank-lib/fakebank.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 86f4c071a..3b32e02ce 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -821,6 +821,7 @@ handle_history_skip (const struct HistoryArgs *ha,
return pos->next;
if (hri->count < 0)
return pos->prev;
+ return NULL;
}
@@ -848,6 +849,7 @@ handle_history_step (const struct HistoryArgs *ha,
hri->count++;
return pos->prev;
}
+ return NULL;
}
@@ -1705,9 +1707,9 @@ handle_mhd_request (void *cls,
"/history")) &&
(0 == strcasecmp (method,
MHD_HTTP_METHOD_GET)) )
- return handle_history (h,
- connection,
- con_cls);
+ return handle_history_new (h,
+ connection,
+ con_cls);
/* Unexpected URL path, just close the connection. */
/* we're rather impolite here, but it's a testcase. */