summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-07-04 14:31:29 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-07-04 14:31:29 +0200
commit664266b2fb8bd160a974da13d119828dc0a8a38d (patch)
treeb384364c0b03f20ef55b719f9053dd74423430c7
parent843933bf867b1d5b3830418290fe3e8bad904efc (diff)
downloadmerchant-664266b2fb8bd160a974da13d119828dc0a8a38d.tar.gz
merchant-664266b2fb8bd160a974da13d119828dc0a8a38d.tar.bz2
merchant-664266b2fb8bd160a974da13d119828dc0a8a38d.zip
Providing 'static' keyword where missing.
-rw-r--r--src/backend/taler-merchant-httpd_pay.c2
-rw-r--r--src/backend/taler-merchant-httpd_trigger-pay.c2
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c8
-rw-r--r--src/lib/merchant_api_refund.c2
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
index 6b0a64a1..f1444bef 100644
--- 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
index 1b0a7ba4..2187acbe 100644
--- 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
index c7427d77..684ddd11 100644
--- 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
index 0dbd52fd..e724108c 100644
--- 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)