aboutsummaryrefslogtreecommitdiff
path: root/src/backenddb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-31 10:19:37 +0100
committerChristian Grothoff <christian@grothoff.org>2019-10-31 13:01:55 +0100
commitb94c69aeb88d446415e8f12b6e5454d027176b0d (patch)
tree83801b4953b91215de3881ef55bf1593de292f71 /src/backenddb
parent6edff51bf6044779a42bac7b964a08d44b45fe0b (diff)
downloadmerchant-b94c69aeb88d446415e8f12b6e5454d027176b0d.tar.gz
merchant-b94c69aeb88d446415e8f12b6e5454d027176b0d.tar.bz2
merchant-b94c69aeb88d446415e8f12b6e5454d027176b0d.zip
tighten formatting rules
Diffstat (limited to 'src/backenddb')
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c11
-rw-r--r--src/backenddb/test_merchantdb.c7
2 files changed, 11 insertions, 7 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index 4b752893..89f8d127 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -588,6 +588,7 @@ postgres_insert_session_info (void *cls,
params);
}
+
/**
* Retrieve the order ID that was used to pay for a resource within a session.
*
@@ -2316,8 +2317,7 @@ process_deposits_for_refund_cb (void *cls,
* Although this should be checked as the business should never
* issue a refund bigger than the contract's actual price, we cannot
* rely upon the frontend being correct.
- */
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ */GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"The refund of %s is bigger than the order's value\n",
TALER_amount2s (ctx->refund));
@@ -2475,7 +2475,7 @@ postgres_enable_tip_reserve_TR (void *cls,
retries = 0;
check_connection (pg);
- RETRY:
+RETRY:
if (MAX_RETRIES < ++retries)
return GNUNET_DB_STATUS_SOFT_ERROR;
if (GNUNET_OK !=
@@ -2682,7 +2682,7 @@ postgres_authorize_tip_TR (void *cls,
retries = 0;
check_connection (pg);
- RETRY:
+RETRY:
if (MAX_RETRIES < ++retries)
return TALER_EC_TIP_AUTHORIZE_DB_SOFT_ERROR;
if (GNUNET_OK !=
@@ -2898,7 +2898,7 @@ postgres_pickup_tip_TR (void *cls,
retries = 0;
check_connection (pg);
- RETRY:
+RETRY:
if (MAX_RETRIES < ++retries)
return TALER_EC_TIP_PICKUP_DB_ERROR_SOFT;
if (GNUNET_OK !=
@@ -3745,4 +3745,5 @@ libtaler_plugin_merchantdb_postgres_done (void *cls)
return NULL;
}
+
/* end of plugin_merchantdb_postgres.c */
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c
index 1a569b1f..99f64344 100644
--- a/src/backenddb/test_merchantdb.c
+++ b/src/backenddb/test_merchantdb.c
@@ -262,8 +262,8 @@ deposit_cb (void *cls,
const struct TALER_Amount *awire_fee,
const json_t *aexchange_proof)
{
- CHECK ((0 == GNUNET_memcmp (ah_contract_terms,
- &h_contract_terms)));
+ CHECK (0 == GNUNET_memcmp (ah_contract_terms,
+ &h_contract_terms));
CHECK (0 == GNUNET_memcmp (acoin_pub,
&coin_pub));
CHECK (0 == strcmp (aexchange_url,
@@ -329,6 +329,8 @@ proof_cb (void *cls,
CHECK (1 == json_equal ((json_t *) proof,
transfer_proof));
}
+
+
#undef CHECK
@@ -1070,4 +1072,5 @@ main (int argc,
return result;
}
+
/* end of test_merchantdb.c */