donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 9e51b37be029eaf58f0f34e59440e8b4e46f7e3d
parent bc14b7751ccfdb6a009c03944b639e245e4c5816
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
Date:   Thu, 18 Jan 2024 11:24:19 +0100

exclude history

Diffstat:
Msrc/donau/Makefile.am | 1-
Msrc/donau/donau-httpd.c | 4++--
Msrc/donau/donau-httpd_charity.h | 3+--
Msrc/donau/donau-httpd_get-charities.c | 12+-----------
4 files changed, 4 insertions(+), 16 deletions(-)

diff --git a/src/donau/Makefile.am b/src/donau/Makefile.am @@ -45,7 +45,6 @@ donau_httpd_SOURCES = \ donau-httpd_config.c donau-httpd_config.h \ donau-httpd_get-charities.c donau_httpd_charity.h \ donau-httpd_get-charity.c donau-httpd_post-charity.c \ - donau-httpd_get-history-entry.c donau-httpd_history.h \ donau-httpd_get-history.c \ donau-httpd_post-submit-receipt.c donau_httpd_receipt.h \ donau-httpd_terms.c donau-httpd_terms.h diff --git a/src/donau/donau-httpd.c b/src/donau/donau-httpd.c @@ -401,12 +401,12 @@ handle_get_charities (struct DH_RequestContext *rc, { if (NULL == args[0]) { - return DH_handler_charities_get (rc, NULL); + return DH_handler_charities_get (rc); } else { return DH_handler_charity_get (rc, - args[0]); + &args[0]); } } diff --git a/src/donau/donau-httpd_charity.h b/src/donau/donau-httpd_charity.h @@ -61,7 +61,6 @@ DH_handler_charity_get ( */ MHD_RESULT DH_handler_charities_get ( - struct DH_RequestContext *rc, - const char *const args[]); + struct DH_RequestContext *rc); #endif diff --git a/src/donau/donau-httpd_get-charities.c b/src/donau/donau-httpd_get-charities.c @@ -75,19 +75,9 @@ charities_cb ( MHD_RESULT DH_handler_charities_get ( - struct DH_RequestContext *rc, - const char *const args[]) + struct DH_RequestContext *rc) { - if (NULL != args[1]) - { - GNUNET_break_op (0); - return TALER_MHD_reply_with_error (rc->connection, - MHD_HTTP_BAD_REQUEST, - TALER_EC_GENERIC_ENDPOINT_UNKNOWN, - args[1]); - } - { json_t *charities; enum GNUNET_DB_QueryStatus qs;