From 385b3e77dfa1b6bbaee5d0ec9da9bcbd69e91b70 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 31 Oct 2019 12:59:50 +0100 Subject: tighten formatting rules --- src/exchange/taler-exchange-aggregator.c | 2 +- src/exchange/taler-exchange-httpd.c | 3 ++- src/exchange/taler-exchange-httpd_keystate.c | 3 --- src/exchange/taler-exchange-httpd_parsing.c | 1 - src/exchange/taler-exchange-httpd_responses.c | 7 +++---- src/exchange/taler-exchange-httpd_wire.c | 1 - src/exchange/taler-exchange-wirewatch.c | 1 + src/exchange/test_taler_exchange_aggregator.c | 3 ++- src/exchange/test_taler_exchange_wirewatch.c | 1 + 9 files changed, 10 insertions(+), 12 deletions(-) (limited to 'src/exchange') diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c index fffb652c7..95f56d0df 100644 --- a/src/exchange/taler-exchange-aggregator.c +++ b/src/exchange/taler-exchange-aggregator.c @@ -291,7 +291,6 @@ static unsigned int aggregation_limit = TALER_EXCHANGEDB_MATCHING_DEPOSITS_LIMIT; - /** * Advance the "af" pointer in @a wp to point to the * currently valid record. @@ -1968,4 +1967,5 @@ main (int argc, return global_ret; } + /* end of taler-exchange-aggregator.c */ diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index bdb213a87..af38a605a 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -839,6 +839,7 @@ connection_done (void *cls, "kill"); } + /* end of HAVE_DEVELOPER */ #endif @@ -1026,7 +1027,6 @@ write_stats () } - /** * The main function of the taler-exchange-httpd server ("the exchange"). * @@ -1261,4 +1261,5 @@ main (int argc, return (GNUNET_SYSERR == ret) ? 1 : 0; } + /* end of taler-exchange-httpd.c */ diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c index f9cda8a5f..ce6a856d9 100644 --- a/src/exchange/taler-exchange-httpd_keystate.c +++ b/src/exchange/taler-exchange-httpd_keystate.c @@ -262,7 +262,6 @@ struct ResponseFactoryContext }; - /** * Snapshot of the (coin and signing) keys (including private keys) of * the exchange. There can be multiple instances of this struct, as it is @@ -327,7 +326,6 @@ struct TEH_KS_StateHandle }; - /** * Exchange key state. This is the long-term, read-only internal global state, * which the various threads "lock" to use in read-only ways. We eventually @@ -346,7 +344,6 @@ static struct TEH_KS_StateHandle *internal_key_state; static pthread_mutex_t internal_key_state_mutex = PTHREAD_MUTEX_INITIALIZER; - /* ************************** Clean up logic *********************** */ diff --git a/src/exchange/taler-exchange-httpd_parsing.c b/src/exchange/taler-exchange-httpd_parsing.c index dc77d1822..fb8932b9a 100644 --- a/src/exchange/taler-exchange-httpd_parsing.c +++ b/src/exchange/taler-exchange-httpd_parsing.c @@ -36,7 +36,6 @@ #define REQUEST_BUFFER_MAX (1024 * 1024) - /** * Process a POST request containing a JSON object. This function * realizes an MHD POST processor that will (incrementally) process diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index 1c2f92f0e..2e1835845 100644 --- a/src/exchange/taler-exchange-httpd_responses.c +++ b/src/exchange/taler-exchange-httpd_responses.c @@ -698,8 +698,7 @@ TEH_RESPONSE_compile_transaction_history (const struct the denomination key's RSA signature over coin_pub, but as the wallet should really already have this information (and cannot check or do anything with it anyway if it doesn't), it seems - strictly unnecessary. */ - if (0 != + strictly unnecessary. */if (0 != json_array_append_new (history, json_pack ("{s:s, s:o, s:o, s:o, s:o, s:o}", "type", "OLD-COIN-PAYBACK", @@ -801,8 +800,7 @@ TEH_RESPONSE_compile_transaction_history (const struct hash and the denomination key's RSA signature over coin_pub, but as the wallet should really already have this information (and cannot check or do anything with it anyway if it doesn't), it seems - strictly unnecessary. */ - if (0 != + strictly unnecessary. */if (0 != json_array_append_new (history, json_pack ("{s:s, s:o, s:o, s:o, s:o, s:o}", "type", "PAYBACK-REFRESH", @@ -1172,4 +1170,5 @@ TEH_RESPONSE_reply_transaction_unknown (struct MHD_Connection *connection, "code", (json_int_t) ec); } + /* end of taler-exchange-httpd_responses.c */ diff --git a/src/exchange/taler-exchange-httpd_wire.c b/src/exchange/taler-exchange-httpd_wire.c index 797ed8bed..1bc4a8279 100644 --- a/src/exchange/taler-exchange-httpd_wire.c +++ b/src/exchange/taler-exchange-httpd_wire.c @@ -176,5 +176,4 @@ TEH_wire_cleanup () } - /* end of taler-exchange-httpd_wire.c */ diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c index ea737b7b5..83d90c6e2 100644 --- a/src/exchange/taler-exchange-wirewatch.c +++ b/src/exchange/taler-exchange-wirewatch.c @@ -735,4 +735,5 @@ main (int argc, return global_ret; } + /* end of taler-exchange-wirewatch.c */ diff --git a/src/exchange/test_taler_exchange_aggregator.c b/src/exchange/test_taler_exchange_aggregator.c index 274a28ac7..9a187add5 100644 --- a/src/exchange/test_taler_exchange_aggregator.c +++ b/src/exchange/test_taler_exchange_aggregator.c @@ -28,7 +28,6 @@ #include "taler_fakebank_lib.h" - /** * Commands for the interpreter. */ @@ -351,6 +350,7 @@ maint_child_death (void *cls) interpreter (state); } + /** * Setup (fake) information about a coin used in deposit. * @@ -1333,4 +1333,5 @@ main (int argc, return result; } + /* end of test_taler_exchange_aggregator.c */ diff --git a/src/exchange/test_taler_exchange_wirewatch.c b/src/exchange/test_taler_exchange_wirewatch.c index 27b98bb06..da2da615a 100644 --- a/src/exchange/test_taler_exchange_wirewatch.c +++ b/src/exchange/test_taler_exchange_wirewatch.c @@ -857,4 +857,5 @@ main (int argc, return result; } + /* end of test_taler_exchange_wirewatch.c */ -- cgit v1.2.3