aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_startonly.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-04 14:00:32 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-04 14:00:32 +0000
commit83b19539f4d322b43683f5838b72e9ec2c8e6073 (patch)
treed0ab9329fcbefe360d9d14e2ace21a6b3396dfe9 /src/transport/test_transport_startonly.c
parent28a2eb43281a1f08a67954f07beb9af3a9bc9a35 (diff)
downloadgnunet-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.c14
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
55static struct PeerContext *p1; 55static struct PeerContext *p1;
56 56
57struct GNUNET_TRANSPORT_TESTING_handle * tth; 57struct GNUNET_TRANSPORT_TESTING_handle *tth;
58 58
59static int connected = GNUNET_NO; 59static int connected = GNUNET_NO;
60 60
@@ -92,8 +92,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
92 92
93static void 93static void
94notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, 94notify_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)
110static void 109static void
111notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, 110notify_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 &notify_receive, &notify_connect, 132 "test_transport_startonly.conf",
133 1, &notify_receive,
134 &notify_connect,
135 &notify_disconnect, NULL, p1); 135 &notify_disconnect, NULL, p1);
136 136
137 137