diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-09-27 11:02:56 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-09-27 11:02:56 +0200 |
commit | 7ecc3a03a0670a1620c603502c9958b95e6dc1d0 (patch) | |
tree | 69d76fd05cbf0facae18b99b526c16426bf9b1c6 /src/messenger/testing_messenger_setup.c | |
parent | 1fef34e55a00816bdb237e87ff14d54e6575f763 (diff) | |
download | gnunet-7ecc3a03a0670a1620c603502c9958b95e6dc1d0.tar.gz gnunet-7ecc3a03a0670a1620c603502c9958b95e6dc1d0.zip |
-indentation of parameters
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/messenger/testing_messenger_setup.c')
-rw-r--r-- | src/messenger/testing_messenger_setup.c | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/src/messenger/testing_messenger_setup.c b/src/messenger/testing_messenger_setup.c index 98241fa08..3cde8c9bb 100644 --- a/src/messenger/testing_messenger_setup.c +++ b/src/messenger/testing_messenger_setup.c | |||
@@ -204,7 +204,9 @@ end_error_cb (void *cls) | |||
204 | } | 204 | } |
205 | 205 | ||
206 | static void | 206 | static void |
207 | barrier2_wait_cb (void *cls, struct GNUNET_BarrierWaitHandle *waiting, int status) | 207 | barrier2_wait_cb (void *cls, |
208 | struct GNUNET_BarrierWaitHandle *waiting, | ||
209 | int status) | ||
208 | { | 210 | { |
209 | struct test_peer *peer = cls; | 211 | struct test_peer *peer = cls; |
210 | 212 | ||
@@ -215,7 +217,9 @@ barrier2_wait_cb (void *cls, struct GNUNET_BarrierWaitHandle *waiting, int statu | |||
215 | } | 217 | } |
216 | 218 | ||
217 | static void | 219 | static void |
218 | barrier_wait_cb (void *cls, struct GNUNET_BarrierWaitHandle *waiting, int status) | 220 | barrier_wait_cb (void *cls, |
221 | struct GNUNET_BarrierWaitHandle *waiting, | ||
222 | int status) | ||
219 | { | 223 | { |
220 | struct test_peer *peer = cls; | 224 | struct test_peer *peer = cls; |
221 | 225 | ||
@@ -259,8 +263,11 @@ barrier_wait_cb (void *cls, struct GNUNET_BarrierWaitHandle *waiting, int status | |||
259 | * @param flags Flags of message | 263 | * @param flags Flags of message |
260 | */ | 264 | */ |
261 | static void | 265 | static void |
262 | on_message (void *cls, struct GNUNET_MESSENGER_Room *room, const struct GNUNET_MESSENGER_Contact *sender, | 266 | on_message (void *cls, |
263 | const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash, | 267 | struct GNUNET_MESSENGER_Room *room, |
268 | const struct GNUNET_MESSENGER_Contact *sender, | ||
269 | const struct GNUNET_MESSENGER_Message *message, | ||
270 | const struct GNUNET_HashCode *hash, | ||
264 | enum GNUNET_MESSENGER_MessageFlags flags) | 271 | enum GNUNET_MESSENGER_MessageFlags flags) |
265 | { | 272 | { |
266 | struct test_peer *peer = cls; | 273 | struct test_peer *peer = cls; |
@@ -340,7 +347,9 @@ second_stage (void *cls) | |||
340 | } | 347 | } |
341 | 348 | ||
342 | static void | 349 | static void |
343 | on_peer (void *cb_cls, struct GNUNET_TESTBED_Operation *op, const struct GNUNET_TESTBED_PeerInformation *pinfo, | 350 | on_peer (void *cb_cls, |
351 | struct GNUNET_TESTBED_Operation *op, | ||
352 | const struct GNUNET_TESTBED_PeerInformation *pinfo, | ||
344 | const char *emsg) | 353 | const char *emsg) |
345 | { | 354 | { |
346 | struct test_peer *peer = cb_cls; | 355 | struct test_peer *peer = cb_cls; |
@@ -396,7 +405,8 @@ on_peer (void *cb_cls, struct GNUNET_TESTBED_Operation *op, const struct GNUNET_ | |||
396 | * @param event Information about the event | 405 | * @param event Information about the event |
397 | */ | 406 | */ |
398 | static void | 407 | static void |
399 | run (void *cls, const struct GNUNET_TESTBED_EventInformation *event) | 408 | run (void *cls, |
409 | const struct GNUNET_TESTBED_EventInformation *event) | ||
400 | { | 410 | { |
401 | struct test_properties *properties = cls; | 411 | struct test_properties *properties = cls; |
402 | 412 | ||
@@ -420,7 +430,9 @@ run (void *cls, const struct GNUNET_TESTBED_EventInformation *event) | |||
420 | } | 430 | } |
421 | 431 | ||
422 | static void | 432 | static void |
423 | barrier2_cb (void *cls, struct GNUNET_BarrierHandle *barrier, int status) | 433 | barrier2_cb (void *cls, |
434 | struct GNUNET_BarrierHandle *barrier, | ||
435 | int status) | ||
424 | { | 436 | { |
425 | struct test_properties *properties = cls; | 437 | struct test_properties *properties = cls; |
426 | 438 | ||
@@ -449,7 +461,9 @@ barrier2_cb (void *cls, struct GNUNET_BarrierHandle *barrier, int status) | |||
449 | } | 461 | } |
450 | 462 | ||
451 | static void | 463 | static void |
452 | barrier_cb (void *cls, struct GNUNET_BarrierHandle *barrier, int status) | 464 | barrier_cb (void *cls, |
465 | struct GNUNET_BarrierHandle *barrier, | ||
466 | int status) | ||
453 | { | 467 | { |
454 | struct test_properties *properties = cls; | 468 | struct test_properties *properties = cls; |
455 | 469 | ||
@@ -485,8 +499,12 @@ barrier_cb (void *cls, struct GNUNET_BarrierHandle *barrier, int status) | |||
485 | } | 499 | } |
486 | 500 | ||
487 | static void | 501 | static void |
488 | init (void *cls, struct GNUNET_TESTBED_RunHandle *h, unsigned int num_peers, struct GNUNET_TESTBED_Peer **peers, | 502 | init (void *cls, |
489 | unsigned int links_succeeded, unsigned int links_failed) | 503 | struct GNUNET_TESTBED_RunHandle *h, |
504 | unsigned int num_peers, | ||
505 | struct GNUNET_TESTBED_Peer **peers, | ||
506 | unsigned int links_succeeded, | ||
507 | unsigned int links_failed) | ||
490 | { | 508 | { |
491 | struct test_properties *properties = cls; | 509 | struct test_properties *properties = cls; |
492 | 510 | ||
@@ -500,7 +518,8 @@ init (void *cls, struct GNUNET_TESTBED_RunHandle *h, unsigned int num_peers, str | |||
500 | } | 518 | } |
501 | 519 | ||
502 | int | 520 | int |
503 | GNUNET_run_messenger_setup (const char* test_name, const struct test_configuration *cfg) | 521 | GNUNET_run_messenger_setup (const char* test_name, |
522 | const struct test_configuration *cfg) | ||
504 | { | 523 | { |
505 | struct test_properties properties; | 524 | struct test_properties properties; |
506 | memset(&properties, 0, sizeof(properties)); | 525 | memset(&properties, 0, sizeof(properties)); |