merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 664266b2fb8bd160a974da13d119828dc0a8a38d
parent 843933bf867b1d5b3830418290fe3e8bad904efc
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Wed,  4 Jul 2018 14:31:29 +0200

Providing 'static' keyword where missing.

Diffstat:
Msrc/backend/taler-merchant-httpd_pay.c | 2+-
Msrc/backend/taler-merchant-httpd_trigger-pay.c | 2+-
Msrc/backenddb/plugin_merchantdb_postgres.c | 8++++----
Msrc/lib/merchant_api_refund.c | 2+-
4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c @@ -460,7 +460,7 @@ abort_deposit (struct PayContext *pc) * @param pc payment context * @return the mhd response */ -struct MHD_Response * +static struct MHD_Response * sign_success_response (struct PayContext *pc) { json_t *refunds; diff --git a/src/backend/taler-merchant-httpd_trigger-pay.c b/src/backend/taler-merchant-httpd_trigger-pay.c @@ -41,7 +41,7 @@ * @param response response that receives the header * @param header_name name of the header to set */ -void +static void add_header_from_arg (struct MHD_Connection *connection, const char *arg_name, struct MHD_Response *response, const char *header_name) { diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c @@ -744,7 +744,7 @@ postgres_start (void *cls, * @param cls the `struct PostgresClosure` with the plugin-specific state * @return #GNUNET_OK on success */ -void +static void postgres_rollback (void *cls) { struct PostgresClosure *pg = cls; @@ -1077,7 +1077,7 @@ postgres_insert_order (void *cls, * if payment was not session-bound * @return transaction status */ -enum GNUNET_DB_QueryStatus +static enum GNUNET_DB_QueryStatus postgres_mark_proposal_paid (void *cls, const struct GNUNET_HashCode *h_contract_terms, const struct TALER_MerchantPublicKeyP *merchant_pub, @@ -1510,7 +1510,7 @@ find_tip_authorizations_cb (void *cls, * #GNUNET_DB_STATUS_SUCCESS_NO_RESULTS if the reserve_priv * does not identify a known tipping reserve */ -enum GNUNET_DB_QueryStatus +static enum GNUNET_DB_QueryStatus postgres_get_authorized_tip_amount (void *cls, const struct TALER_ReservePrivateKeyP *reserve_priv, struct TALER_Amount *authorized_amount) @@ -2252,7 +2252,7 @@ postgres_get_refunds_from_contract_terms_hash (void *cls, * @param refund how much this coin is refunding * @param refund_fee refund fee for this coin */ -enum GNUNET_DB_QueryStatus +static enum GNUNET_DB_QueryStatus insert_refund (void *cls, const struct TALER_MerchantPublicKeyP *merchant_pub, const struct GNUNET_HashCode *h_contract_terms, diff --git a/src/lib/merchant_api_refund.c b/src/lib/merchant_api_refund.c @@ -268,7 +268,7 @@ TALER_MERCHANT_refund_lookup_cancel (struct TALER_MERCHANT_RefundLookupOperation /** * Process GET /refund response */ -void +static void handle_refund_lookup_finished (void *cls, long response_code, const json_t *json)