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/transport/test_transport_startonly.c | |
parent | 28a2eb43281a1f08a67954f07beb9af3a9bc9a35 (diff) | |
download | gnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.tar.gz gnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.zip |
curly wars / auto-indentation
Diffstat (limited to 'src/transport/test_transport_startonly.c')
-rw-r--r-- | src/transport/test_transport_startonly.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/transport/test_transport_startonly.c b/src/transport/test_transport_startonly.c index 1349a0c4d..c6215c9bc 100644 --- a/src/transport/test_transport_startonly.c +++ b/src/transport/test_transport_startonly.c | |||
@@ -54,7 +54,7 @@ GNUNET_SCHEDULER_TaskIdentifier timeout_task; | |||
54 | 54 | ||
55 | static struct PeerContext *p1; | 55 | static struct PeerContext *p1; |
56 | 56 | ||
57 | struct GNUNET_TRANSPORT_TESTING_handle * tth; | 57 | struct GNUNET_TRANSPORT_TESTING_handle *tth; |
58 | 58 | ||
59 | static int connected = GNUNET_NO; | 59 | static int connected = GNUNET_NO; |
60 | 60 | ||
@@ -92,8 +92,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
92 | 92 | ||
93 | static void | 93 | static void |
94 | notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, | 94 | notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, |
95 | const struct GNUNET_ATS_Information *ats, | 95 | const struct GNUNET_ATS_Information *ats, uint32_t ats_count) |
96 | uint32_t ats_count) | ||
97 | { | 96 | { |
98 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%s' connected \n", | 97 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%s' connected \n", |
99 | GNUNET_i2s (peer)); | 98 | GNUNET_i2s (peer)); |
@@ -110,8 +109,7 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) | |||
110 | static void | 109 | static void |
111 | notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, | 110 | notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, |
112 | const struct GNUNET_MessageHeader *message, | 111 | const struct GNUNET_MessageHeader *message, |
113 | const struct GNUNET_ATS_Information *ats, | 112 | const struct GNUNET_ATS_Information *ats, uint32_t ats_count) |
114 | uint32_t ats_count) | ||
115 | { | 113 | { |
116 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving\n"); | 114 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving\n"); |
117 | } | 115 | } |
@@ -130,8 +128,10 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
130 | while (i <= ITERATIONS) | 128 | while (i <= ITERATIONS) |
131 | { | 129 | { |
132 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting peer\n"); | 130 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting peer\n"); |
133 | p1 = GNUNET_TRANSPORT_TESTING_start_peer (tth, "test_transport_startonly.conf", 1, | 131 | p1 = GNUNET_TRANSPORT_TESTING_start_peer (tth, |
134 | ¬ify_receive, ¬ify_connect, | 132 | "test_transport_startonly.conf", |
133 | 1, ¬ify_receive, | ||
134 | ¬ify_connect, | ||
135 | ¬ify_disconnect, NULL, p1); | 135 | ¬ify_disconnect, NULL, p1); |
136 | 136 | ||
137 | 137 | ||