summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-05-02 22:25:47 +0200
committerChristian Grothoff <christian@grothoff.org>2019-05-02 22:25:47 +0200
commit9c194f79a5d9fdba4d5cb9a0379bb8cae4778b95 (patch)
tree17aeb48b3f3cc38d048a9e20f9e921126ed56851
parentde9fdf860af9bdeadee4ed21a2c03dc34d58dd86 (diff)
downloadexchange-9c194f79a5d9fdba4d5cb9a0379bb8cae4778b95.tar.gz
exchange-9c194f79a5d9fdba4d5cb9a0379bb8cae4778b95.tar.bz2
exchange-9c194f79a5d9fdba4d5cb9a0379bb8cae4778b95.zip
adapt to GNUnet API change
-rw-r--r--src/auditor/taler-auditor-httpd_parsing.c1
-rw-r--r--src/bank-lib/fakebank.c10
-rw-r--r--src/exchange/taler-exchange-httpd_parsing.c1
3 files changed, 8 insertions, 4 deletions
diff --git a/src/auditor/taler-auditor-httpd_parsing.c b/src/auditor/taler-auditor-httpd_parsing.c
index ebbe50ee..6c4bece9 100644
--- a/src/auditor/taler-auditor-httpd_parsing.c
+++ b/src/auditor/taler-auditor-httpd_parsing.c
@@ -70,6 +70,7 @@ TAH_PARSE_post_json (struct MHD_Connection *connection,
enum GNUNET_JSON_PostResult pr;
pr = GNUNET_JSON_post_parser (REQUEST_BUFFER_MAX,
+ connection,
con_cls,
upload_data,
upload_data_size,
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 27cf6b8b..71dd8bac 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -397,6 +397,7 @@ handle_admin_add_incoming (struct TALER_FAKEBANK_Handle *h,
uint64_t row_id;
pr = GNUNET_JSON_post_parser (REQUEST_BUFFER_MAX,
+ connection,
con_cls,
upload_data,
upload_data_size,
@@ -523,6 +524,7 @@ handle_reject (struct TALER_FAKEBANK_Handle *h,
int found;
pr = GNUNET_JSON_post_parser (REQUEST_BUFFER_MAX,
+ connection,
con_cls,
upload_data,
upload_data_size,
@@ -604,7 +606,7 @@ handle_home_page (struct TALER_FAKEBANK_Handle *h,
int ret;
struct MHD_Response *resp;
#define HELLOMSG "Hello, Fakebank!"
-
+
resp = MHD_create_response_from_buffer
(strlen (HELLOMSG),
HELLOMSG,
@@ -721,8 +723,8 @@ handle_history_range (struct TALER_FAKEBANK_Handle *h,
struct HistoryRangeDates hrd;
const char *start;
const char *end;
- long long unsigned int start_stamp;
- long long unsigned int end_stamp;
+ long long unsigned int start_stamp;
+ long long unsigned int end_stamp;
struct Transaction *pos;
if (GNUNET_OK != TFH_parse_history_common_args (connection,
@@ -760,7 +762,7 @@ handle_history_range (struct TALER_FAKEBANK_Handle *h,
pos = pos->next)
{
if (hrd.start.abs_value_us <= pos->date.abs_value_us)
- break;
+ break;
}
return TFH_build_history_response (connection,
pos,
diff --git a/src/exchange/taler-exchange-httpd_parsing.c b/src/exchange/taler-exchange-httpd_parsing.c
index 4d7b5ab6..2a9f7a5a 100644
--- a/src/exchange/taler-exchange-httpd_parsing.c
+++ b/src/exchange/taler-exchange-httpd_parsing.c
@@ -70,6 +70,7 @@ TEH_PARSE_post_json (struct MHD_Connection *connection,
enum GNUNET_JSON_PostResult pr;
pr = GNUNET_JSON_post_parser (REQUEST_BUFFER_MAX,
+ connection,
con_cls,
upload_data,
upload_data_size,