[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] 01/03: indentation fixes
From: |
gnunet |
Subject: |
[taler-merchant] 01/03: indentation fixes |
Date: |
Sun, 25 Oct 2020 19:17:25 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
commit 369b52aac1ffe65fc3e5f915114bdb44d9211e17
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Oct 25 19:11:10 2020 +0100
indentation fixes
---
src/backend/taler-merchant-httpd_auditors.c | 1 +
src/backend/taler-merchant-httpd_exchanges.c | 4 ++++
src/backend/taler-merchant-httpd_post-orders-ID-abort.c | 1 +
src/backend/taler-merchant-httpd_private-get-tips.c | 1 +
src/lib/merchant_api_post_order_claim.c | 3 ++-
src/lib/merchant_api_post_orders.c | 8 ++++----
src/testing/testing_api_cmd_wallet_post_orders_refund.c | 3 ++-
7 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_auditors.c
b/src/backend/taler-merchant-httpd_auditors.c
index 1609e2b..c7e7e58 100644
--- a/src/backend/taler-merchant-httpd_auditors.c
+++ b/src/backend/taler-merchant-httpd_auditors.c
@@ -216,6 +216,7 @@ parse_auditors (void *cls,
auditor);
}
+
int
TMH_AUDITORS_init (const struct GNUNET_CONFIGURATION_Handle *cfg)
{
diff --git a/src/backend/taler-merchant-httpd_exchanges.c
b/src/backend/taler-merchant-httpd_exchanges.c
index 1d5db7e..e882f55 100644
--- a/src/backend/taler-merchant-httpd_exchanges.c
+++ b/src/backend/taler-merchant-httpd_exchanges.c
@@ -604,6 +604,7 @@ process_find_operations (struct Exchange *exchange)
return need_wire;
}
+
static void
wire_task_cb (void *cls);
@@ -940,6 +941,7 @@ return_result (void *cls)
}
}
+
struct TMH_EXCHANGES_FindOperation *
TMH_EXCHANGES_find_exchange (const char *chosen_exchange,
const char *wire_method,
@@ -1169,6 +1171,7 @@ accept_exchanges (void *cls,
exchange);
}
+
int
TMH_EXCHANGES_init (const struct GNUNET_CONFIGURATION_Handle *cfg)
{
@@ -1208,6 +1211,7 @@ TMH_EXCHANGES_init (const struct
GNUNET_CONFIGURATION_Handle *cfg)
return json_array_size (TMH_trusted_exchanges);
}
+
void
TMH_EXCHANGES_done ()
{
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-abort.c
b/src/backend/taler-merchant-httpd_post-orders-ID-abort.c
index 58c38b7..cfb5bb7 100644
--- a/src/backend/taler-merchant-httpd_post-orders-ID-abort.c
+++ b/src/backend/taler-merchant-httpd_post-orders-ID-abort.c
@@ -257,6 +257,7 @@ abort_refunds (struct AbortContext *ac)
}
}
+
void
TMH_force_ac_resume ()
{
diff --git a/src/backend/taler-merchant-httpd_private-get-tips.c
b/src/backend/taler-merchant-httpd_private-get-tips.c
index 74b9751..4282ebe 100644
--- a/src/backend/taler-merchant-httpd_private-get-tips.c
+++ b/src/backend/taler-merchant-httpd_private-get-tips.c
@@ -51,6 +51,7 @@ add_tip (void *cls,
TALER_JSON_from_amount (&amount))));
}
+
MHD_RESULT
TMH_private_get_tips (const struct TMH_RequestHandler *rh,
struct MHD_Connection *connection,
diff --git a/src/lib/merchant_api_post_order_claim.c
b/src/lib/merchant_api_post_order_claim.c
index 1389d8e..f37e597 100644
--- a/src/lib/merchant_api_post_order_claim.c
+++ b/src/lib/merchant_api_post_order_claim.c
@@ -190,7 +190,8 @@ TALER_MERCHANT_order_claim (struct GNUNET_CURL_Context *ctx,
GNUNET_assert (0 ==
json_object_set_new (req_obj,
"token",
- GNUNET_JSON_from_data_auto
(claim_token)));
+ GNUNET_JSON_from_data_auto (
+ claim_token)));
}
och = GNUNET_new (struct TALER_MERCHANT_OrderClaimHandle);
och->ctx = ctx;
diff --git a/src/lib/merchant_api_post_orders.c
b/src/lib/merchant_api_post_orders.c
index baab8ac..20af444 100644
--- a/src/lib/merchant_api_post_orders.c
+++ b/src/lib/merchant_api_post_orders.c
@@ -100,10 +100,10 @@ handle_post_order_finished (void *cls,
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_string ("order_id",
&order_id),
- (!has_token) ?
- GNUNET_JSON_spec_end () :
- GNUNET_JSON_spec_fixed_auto ("token",
- &token),
+ (! has_token) ?
+ GNUNET_JSON_spec_end () :
+ GNUNET_JSON_spec_fixed_auto ("token",
+ &token),
GNUNET_JSON_spec_end ()
};
diff --git a/src/testing/testing_api_cmd_wallet_post_orders_refund.c
b/src/testing/testing_api_cmd_wallet_post_orders_refund.c
index 912264a..80e5e99 100644
--- a/src/testing/testing_api_cmd_wallet_post_orders_refund.c
+++ b/src/testing/testing_api_cmd_wallet_post_orders_refund.c
@@ -138,7 +138,8 @@ refund_cb (
/* The most recent refunds are returned first */
GNUNET_assert (0 <= TALER_amount_add (&refunded_total,
&refunded_total,
- &refunds[refunds_length - 1 -
i].refund_amount));
+ &refunds[refunds_length - 1
+ - i].refund_amount));
if ((GNUNET_OK !=
TALER_amount_cmp_currency (&expected_amount,
&refunded_total)) ||
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.