From 7e3cf5f461eb4fbb7581672bf0835da07c378136 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 31 Oct 2019 13:03:48 +0100 Subject: tighten formatting rules --- src/topology/test_gnunet_daemon_topology.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/topology/test_gnunet_daemon_topology.c') diff --git a/src/topology/test_gnunet_daemon_topology.c b/src/topology/test_gnunet_daemon_topology.c index f6d0e2c2b..a7dace383 100644 --- a/src/topology/test_gnunet_daemon_topology.c +++ b/src/topology/test_gnunet_daemon_topology.c @@ -98,6 +98,7 @@ shutdown_task (void *cls) GNUNET_SCHEDULER_cancel (timeout_tid); } + static void timeout_task (void *cls) { @@ -109,6 +110,7 @@ timeout_task (void *cls) GNUNET_SCHEDULER_shutdown (); } + /* * The function is called every time the topology of connected * peers to a peer changes. @@ -131,7 +133,7 @@ statistics_iterator (void *cls, if (p_ctx->connections < value) p_ctx->connections = value; - if ((THRESHOLD <= value)&&(GNUNET_NO == p_ctx->reported)) + if ((THRESHOLD <= value) && (GNUNET_NO == p_ctx->reported)) { p_ctx->reported = GNUNET_YES; checked_peers++; @@ -153,6 +155,7 @@ statistics_iterator (void *cls, return GNUNET_YES; } + static void * ca_statistics (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg) @@ -203,6 +206,7 @@ service_connect_complete (void *cls, "call to GNUNET_STATISTICS_watch() failed\n"); } + static void notify_connect_complete (void *cls, struct GNUNET_TESTBED_Operation *op, @@ -219,6 +223,7 @@ notify_connect_complete (void *cls, connect_left--; } + static void do_connect (void *cls, struct GNUNET_TESTBED_RunHandle *h, @@ -286,4 +291,5 @@ main (int argc, char *argv[]) return (GNUNET_OK != result) ? 1 : 0; } + /* end of test_gnunet_daemon_topology.c */ -- cgit v1.2.3