summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-transport.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-22 19:57:22 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-22 19:57:22 +0000
commit658f44879747d23c92e30ca004b04e2dddac73d8 (patch)
treec3e225cc738cc9588393c6de2b908b4f6e4b9f04 /src/transport/gnunet-transport.c
parent58121840c21ad0a64d6e2b11dd01f50064ca1773 (diff)
-simplify logic a bit, doxygen, indentation
Diffstat (limited to 'src/transport/gnunet-transport.c')
-rw-r--r--src/transport/gnunet-transport.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c
index 80a3e2d15..0fef7784e 100644
--- a/src/transport/gnunet-transport.c
+++ b/src/transport/gnunet-transport.c
@@ -1684,19 +1684,22 @@ testservice_task (void *cls, int result)
monitored_peers = GNUNET_CONTAINER_multipeermap_create (10, GNUNET_NO);
address_resolution_in_progress = GNUNET_YES;
pic = GNUNET_TRANSPORT_monitor_peers (cfg, (NULL == cpid) ? NULL : &pid,
- GNUNET_NO, TIMEOUT, &process_peer_monitoring_cb, (void *) cfg);
+ GNUNET_NO, TIMEOUT,
+ &process_peer_monitoring_cb, (void *) cfg);
}
else if (iterate_validation) /* -d: Print information about validations */
{
vic = GNUNET_TRANSPORT_monitor_validation_entries (cfg,
- (NULL == cpid) ? NULL : &pid,
- GNUNET_YES, TIMEOUT, &process_validation_cb, (void *) cfg);
+ (NULL == cpid) ? NULL : &pid,
+ GNUNET_YES, TIMEOUT,
+ &process_validation_cb, (void *) cfg);
}
else if (monitor_validation) /* -f: Print information about validations continuously */
{
vic = GNUNET_TRANSPORT_monitor_validation_entries (cfg,
- (NULL == cpid) ? NULL : &pid,
- GNUNET_NO, TIMEOUT, &process_validation_cb, (void *) cfg);
+ (NULL == cpid) ? NULL : &pid,
+ GNUNET_NO, TIMEOUT,
+ &process_validation_cb, (void *) cfg);
}
else if (monitor_connects) /* -e : Monitor (dis)connect events continuously */
{
@@ -1706,7 +1709,9 @@ testservice_task (void *cls, int result)
&monitor_notify_disconnect);
if (NULL == handle)
{
- FPRINTF (stderr, "%s", _("Failed to connect to transport service\n"));
+ FPRINTF (stderr,
+ "%s",
+ _("Failed to connect to transport service\n"));
ret = 1;
return;
}
@@ -1721,7 +1726,6 @@ testservice_task (void *cls, int result)
end = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
&shutdown_task,
NULL);
-
}