diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-01-21 18:32:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-01-21 18:32:42 +0000 |
commit | a72baac5158e9ad5b69c7e9af1144604e92689cc (patch) | |
tree | e4a1cb8d1c6d4edffe4639a6c4ffb1c4abe1eaa2 /src/core/test_core_api.c | |
parent | 8b62835d8e607d276ce0d1b2e288646e23bd440a (diff) | |
download | gnunet-a72baac5158e9ad5b69c7e9af1144604e92689cc.tar.gz gnunet-a72baac5158e9ad5b69c7e9af1144604e92689cc.zip |
fixes
Diffstat (limited to 'src/core/test_core_api.c')
-rw-r--r-- | src/core/test_core_api.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c index 7cb5e245c..bb3a0d586 100644 --- a/src/core/test_core_api.c +++ b/src/core/test_core_api.c | |||
@@ -104,7 +104,9 @@ terminate_task_error (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
104 | 104 | ||
105 | static void | 105 | static void |
106 | connect_notify (void *cls, | 106 | connect_notify (void *cls, |
107 | const struct GNUNET_PeerIdentity *peer) | 107 | const struct GNUNET_PeerIdentity *peer, |
108 | struct GNUNET_TIME_Relative latency, | ||
109 | uint32_t distance) | ||
108 | { | 110 | { |
109 | GNUNET_assert ((ok == 5) || (ok == 6)); | 111 | GNUNET_assert ((ok == 5) || (ok == 6)); |
110 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 112 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -125,7 +127,9 @@ disconnect_notify (void *cls, | |||
125 | static int | 127 | static int |
126 | inbound_notify (void *cls, | 128 | inbound_notify (void *cls, |
127 | const struct GNUNET_PeerIdentity *other, | 129 | const struct GNUNET_PeerIdentity *other, |
128 | const struct GNUNET_MessageHeader *message) | 130 | const struct GNUNET_MessageHeader *message, |
131 | struct GNUNET_TIME_Relative latency, | ||
132 | uint32_t distance) | ||
129 | { | 133 | { |
130 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 134 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
131 | "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other)); | 135 | "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other)); |
@@ -136,7 +140,9 @@ inbound_notify (void *cls, | |||
136 | static int | 140 | static int |
137 | outbound_notify (void *cls, | 141 | outbound_notify (void *cls, |
138 | const struct GNUNET_PeerIdentity *other, | 142 | const struct GNUNET_PeerIdentity *other, |
139 | const struct GNUNET_MessageHeader *message) | 143 | const struct GNUNET_MessageHeader *message, |
144 | struct GNUNET_TIME_Relative latency, | ||
145 | uint32_t distance) | ||
140 | { | 146 | { |
141 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 147 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
142 | "Core notifies about outbound data for `%4s'.\n", | 148 | "Core notifies about outbound data for `%4s'.\n", |
@@ -151,7 +157,9 @@ static GNUNET_SCHEDULER_TaskIdentifier err_task; | |||
151 | static int | 157 | static int |
152 | process_mtype (void *cls, | 158 | process_mtype (void *cls, |
153 | const struct GNUNET_PeerIdentity *peer, | 159 | const struct GNUNET_PeerIdentity *peer, |
154 | const struct GNUNET_MessageHeader *message) | 160 | const struct GNUNET_MessageHeader *message, |
161 | struct GNUNET_TIME_Relative latency, | ||
162 | uint32_t distance) | ||
155 | { | 163 | { |
156 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 164 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
157 | "Receiving message from `%4s'.\n", GNUNET_i2s (peer)); | 165 | "Receiving message from `%4s'.\n", GNUNET_i2s (peer)); |