summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-31 13:03:48 +0100
committerChristian Grothoff <christian@grothoff.org>2019-10-31 13:03:48 +0100
commit7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch)
treebdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/testing
parent01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff)
tighten formatting rules
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/gnunet-testing.c1
-rw-r--r--src/testing/test_testing_peerstartup.c4
-rw-r--r--src/testing/test_testing_peerstartup2.c4
-rw-r--r--src/testing/test_testing_portreservation.c4
-rw-r--r--src/testing/test_testing_servicestartup.c4
-rw-r--r--src/testing/test_testing_sharedservices.c4
-rw-r--r--src/testing/testing.c3
7 files changed, 17 insertions, 7 deletions
diff --git a/src/testing/gnunet-testing.c b/src/testing/gnunet-testing.c
index a13a32f77..b850d6b13 100644
--- a/src/testing/gnunet-testing.c
+++ b/src/testing/gnunet-testing.c
@@ -440,4 +440,5 @@ main (int argc, char *const *argv)
return ret;
}
+
/* end of gnunet-testing.c */
diff --git a/src/testing/test_testing_peerstartup.c b/src/testing/test_testing_peerstartup.c
index cfc79e618..4e21fedc9 100644
--- a/src/testing/test_testing_peerstartup.c
+++ b/src/testing/test_testing_peerstartup.c
@@ -122,7 +122,8 @@ end:
}
-int main (int argc, char *argv[])
+int
+main (int argc, char *argv[])
{
struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_END
@@ -138,4 +139,5 @@ int main (int argc, char *argv[])
return (GNUNET_OK == status) ? 0 : 1;
}
+
/* end of test_testing_peerstartup.c */
diff --git a/src/testing/test_testing_peerstartup2.c b/src/testing/test_testing_peerstartup2.c
index 316a55951..26948b7c5 100644
--- a/src/testing/test_testing_peerstartup2.c
+++ b/src/testing/test_testing_peerstartup2.c
@@ -201,7 +201,8 @@ end:
}
-int main (int argc, char *argv[])
+int
+main (int argc, char *argv[])
{
struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_END
@@ -217,4 +218,5 @@ int main (int argc, char *argv[])
return (GNUNET_OK == status) ? 0 : 1;
}
+
/* end of test_testing_peerstartup.c */
diff --git a/src/testing/test_testing_portreservation.c b/src/testing/test_testing_portreservation.c
index d810ad8cf..df3d8d523 100644
--- a/src/testing/test_testing_portreservation.c
+++ b/src/testing/test_testing_portreservation.c
@@ -80,7 +80,8 @@ end:
}
-int main (int argc, char *argv[])
+int
+main (int argc, char *argv[])
{
struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_END
@@ -100,4 +101,5 @@ int main (int argc, char *argv[])
return (GNUNET_OK == status) ? 0 : 1;
}
+
/* end of test_testing_portreservation.c */
diff --git a/src/testing/test_testing_servicestartup.c b/src/testing/test_testing_servicestartup.c
index d25c16167..83458898b 100644
--- a/src/testing/test_testing_servicestartup.c
+++ b/src/testing/test_testing_servicestartup.c
@@ -59,7 +59,8 @@ test_run (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg,
/**
* The main point of execution
*/
-int main (int argc, char *argv[])
+int
+main (int argc, char *argv[])
{
test_success = GNUNET_NO;
GNUNET_assert (0 == GNUNET_TESTING_service_run ("test-testing-servicestartup",
@@ -70,4 +71,5 @@ int main (int argc, char *argv[])
return (GNUNET_YES == test_success) ? 0 : 1;
}
+
/* end of test_testing_servicestartup.c */
diff --git a/src/testing/test_testing_sharedservices.c b/src/testing/test_testing_sharedservices.c
index 13219bf5d..77def3453 100644
--- a/src/testing/test_testing_sharedservices.c
+++ b/src/testing/test_testing_sharedservices.c
@@ -143,7 +143,8 @@ end:
}
-int main (int argc, char *argv[])
+int
+main (int argc, char *argv[])
{
struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_END
@@ -162,4 +163,5 @@ int main (int argc, char *argv[])
return (GNUNET_OK == status) ? 0 : 3;
}
+
/* end of test_testing_sharedservices.c */
diff --git a/src/testing/testing.c b/src/testing/testing.c
index 362a24af5..3e447e1ff 100644
--- a/src/testing/testing.c
+++ b/src/testing/testing.c
@@ -595,8 +595,7 @@ GNUNET_TESTING_reserve_port (struct GNUNET_TESTING_System *system)
address families are considered open.
On system with either IPv4 or IPv6. A port is considered open if it's
open in the respective address family
- */
- hint.ai_family = AF_UNSPEC; /* IPv4 and IPv6 */
+ */hint.ai_family = AF_UNSPEC; /* IPv4 and IPv6 */
hint.ai_socktype = 0;
hint.ai_protocol = 0;
hint.ai_addrlen = 0;