diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-04 14:00:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-04 14:00:32 +0000 |
commit | 83b19539f4d322b43683f5838b72e9ec2c8e6073 (patch) | |
tree | d0ab9329fcbefe360d9d14e2ace21a6b3396dfe9 /src/topology | |
parent | 28a2eb43281a1f08a67954f07beb9af3a9bc9a35 (diff) | |
download | gnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.tar.gz gnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.zip |
curly wars / auto-indentation
Diffstat (limited to 'src/topology')
-rw-r--r-- | src/topology/gnunet-daemon-topology.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index 625923cdf..3e4fd2685 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c | |||
@@ -376,8 +376,9 @@ attempt_connect (struct Peer *pos) | |||
376 | GNUNET_i2s (&pos->pid)); | 376 | GNUNET_i2s (&pos->pid)); |
377 | #endif | 377 | #endif |
378 | GNUNET_STATISTICS_update (stats, | 378 | GNUNET_STATISTICS_update (stats, |
379 | gettext_noop ("# connect requests issued to transport"), | 379 | gettext_noop |
380 | 1, GNUNET_NO); | 380 | ("# connect requests issued to transport"), 1, |
381 | GNUNET_NO); | ||
381 | GNUNET_TRANSPORT_try_connect (transport, &pos->pid); | 382 | GNUNET_TRANSPORT_try_connect (transport, &pos->pid); |
382 | } | 383 | } |
383 | 384 | ||
@@ -637,7 +638,7 @@ reschedule_hellos (void *cls, const GNUNET_HashCode * pid, void *value) | |||
637 | static void | 638 | static void |
638 | connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, | 639 | connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, |
639 | const struct GNUNET_ATS_Information *atsi, | 640 | const struct GNUNET_ATS_Information *atsi, |
640 | unsigned int atsi_count) | 641 | unsigned int atsi_count) |
641 | { | 642 | { |
642 | struct Peer *pos; | 643 | struct Peer *pos; |
643 | 644 | ||
@@ -1110,7 +1111,7 @@ static int | |||
1110 | handle_encrypted_hello (void *cls, const struct GNUNET_PeerIdentity *other, | 1111 | handle_encrypted_hello (void *cls, const struct GNUNET_PeerIdentity *other, |
1111 | const struct GNUNET_MessageHeader *message, | 1112 | const struct GNUNET_MessageHeader *message, |
1112 | const struct GNUNET_ATS_Information *atsi, | 1113 | const struct GNUNET_ATS_Information *atsi, |
1113 | unsigned int atsi_count) | 1114 | unsigned int atsi_count) |
1114 | { | 1115 | { |
1115 | struct Peer *peer; | 1116 | struct Peer *peer; |
1116 | struct GNUNET_PeerIdentity pid; | 1117 | struct GNUNET_PeerIdentity pid; |
@@ -1282,8 +1283,8 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
1282 | transport = GNUNET_TRANSPORT_connect (cfg, NULL, NULL, NULL, NULL, NULL); | 1283 | transport = GNUNET_TRANSPORT_connect (cfg, NULL, NULL, NULL, NULL, NULL); |
1283 | handle = | 1284 | handle = |
1284 | GNUNET_CORE_connect (cfg, 1, NULL, &core_init, &connect_notify, | 1285 | GNUNET_CORE_connect (cfg, 1, NULL, &core_init, &connect_notify, |
1285 | &disconnect_notify, NULL, GNUNET_NO, NULL, | 1286 | &disconnect_notify, NULL, GNUNET_NO, NULL, GNUNET_NO, |
1286 | GNUNET_NO, handlers); | 1287 | handlers); |
1287 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleaning_task, | 1288 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleaning_task, |
1288 | NULL); | 1289 | NULL); |
1289 | if (NULL == transport) | 1290 | if (NULL == transport) |