diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
commit | 7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch) | |
tree | bdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/testing | |
parent | 01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff) | |
download | gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.tar.gz gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.zip |
tighten formatting rules
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/gnunet-testing.c | 1 | ||||
-rw-r--r-- | src/testing/test_testing_peerstartup.c | 4 | ||||
-rw-r--r-- | src/testing/test_testing_peerstartup2.c | 4 | ||||
-rw-r--r-- | src/testing/test_testing_portreservation.c | 4 | ||||
-rw-r--r-- | src/testing/test_testing_servicestartup.c | 4 | ||||
-rw-r--r-- | src/testing/test_testing_sharedservices.c | 4 | ||||
-rw-r--r-- | src/testing/testing.c | 3 |
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) | |||
440 | return ret; | 440 | return ret; |
441 | } | 441 | } |
442 | 442 | ||
443 | |||
443 | /* end of gnunet-testing.c */ | 444 | /* 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: | |||
122 | } | 122 | } |
123 | 123 | ||
124 | 124 | ||
125 | int main (int argc, char *argv[]) | 125 | int |
126 | main (int argc, char *argv[]) | ||
126 | { | 127 | { |
127 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 128 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
128 | GNUNET_GETOPT_OPTION_END | 129 | GNUNET_GETOPT_OPTION_END |
@@ -138,4 +139,5 @@ int main (int argc, char *argv[]) | |||
138 | return (GNUNET_OK == status) ? 0 : 1; | 139 | return (GNUNET_OK == status) ? 0 : 1; |
139 | } | 140 | } |
140 | 141 | ||
142 | |||
141 | /* end of test_testing_peerstartup.c */ | 143 | /* 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: | |||
201 | } | 201 | } |
202 | 202 | ||
203 | 203 | ||
204 | int main (int argc, char *argv[]) | 204 | int |
205 | main (int argc, char *argv[]) | ||
205 | { | 206 | { |
206 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 207 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
207 | GNUNET_GETOPT_OPTION_END | 208 | GNUNET_GETOPT_OPTION_END |
@@ -217,4 +218,5 @@ int main (int argc, char *argv[]) | |||
217 | return (GNUNET_OK == status) ? 0 : 1; | 218 | return (GNUNET_OK == status) ? 0 : 1; |
218 | } | 219 | } |
219 | 220 | ||
221 | |||
220 | /* end of test_testing_peerstartup.c */ | 222 | /* 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: | |||
80 | } | 80 | } |
81 | 81 | ||
82 | 82 | ||
83 | int main (int argc, char *argv[]) | 83 | int |
84 | main (int argc, char *argv[]) | ||
84 | { | 85 | { |
85 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 86 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
86 | GNUNET_GETOPT_OPTION_END | 87 | GNUNET_GETOPT_OPTION_END |
@@ -100,4 +101,5 @@ int main (int argc, char *argv[]) | |||
100 | return (GNUNET_OK == status) ? 0 : 1; | 101 | return (GNUNET_OK == status) ? 0 : 1; |
101 | } | 102 | } |
102 | 103 | ||
104 | |||
103 | /* end of test_testing_portreservation.c */ | 105 | /* 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, | |||
59 | /** | 59 | /** |
60 | * The main point of execution | 60 | * The main point of execution |
61 | */ | 61 | */ |
62 | int main (int argc, char *argv[]) | 62 | int |
63 | main (int argc, char *argv[]) | ||
63 | { | 64 | { |
64 | test_success = GNUNET_NO; | 65 | test_success = GNUNET_NO; |
65 | GNUNET_assert (0 == GNUNET_TESTING_service_run ("test-testing-servicestartup", | 66 | GNUNET_assert (0 == GNUNET_TESTING_service_run ("test-testing-servicestartup", |
@@ -70,4 +71,5 @@ int main (int argc, char *argv[]) | |||
70 | return (GNUNET_YES == test_success) ? 0 : 1; | 71 | return (GNUNET_YES == test_success) ? 0 : 1; |
71 | } | 72 | } |
72 | 73 | ||
74 | |||
73 | /* end of test_testing_servicestartup.c */ | 75 | /* 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: | |||
143 | } | 143 | } |
144 | 144 | ||
145 | 145 | ||
146 | int main (int argc, char *argv[]) | 146 | int |
147 | main (int argc, char *argv[]) | ||
147 | { | 148 | { |
148 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 149 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
149 | GNUNET_GETOPT_OPTION_END | 150 | GNUNET_GETOPT_OPTION_END |
@@ -162,4 +163,5 @@ int main (int argc, char *argv[]) | |||
162 | return (GNUNET_OK == status) ? 0 : 3; | 163 | return (GNUNET_OK == status) ? 0 : 3; |
163 | } | 164 | } |
164 | 165 | ||
166 | |||
165 | /* end of test_testing_sharedservices.c */ | 167 | /* 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) | |||
595 | address families are considered open. | 595 | address families are considered open. |
596 | On system with either IPv4 or IPv6. A port is considered open if it's | 596 | On system with either IPv4 or IPv6. A port is considered open if it's |
597 | open in the respective address family | 597 | open in the respective address family |
598 | */ | 598 | */hint.ai_family = AF_UNSPEC; /* IPv4 and IPv6 */ |
599 | hint.ai_family = AF_UNSPEC; /* IPv4 and IPv6 */ | ||
600 | hint.ai_socktype = 0; | 599 | hint.ai_socktype = 0; |
601 | hint.ai_protocol = 0; | 600 | hint.ai_protocol = 0; |
602 | hint.ai_addrlen = 0; | 601 | hint.ai_addrlen = 0; |