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/dht/test_dht_api.c | |
parent | 28a2eb43281a1f08a67954f07beb9af3a9bc9a35 (diff) | |
download | gnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.tar.gz gnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.zip |
curly wars / auto-indentation
Diffstat (limited to 'src/dht/test_dht_api.c')
-rw-r--r-- | src/dht/test_dht_api.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dht/test_dht_api.c b/src/dht/test_dht_api.c index 51f7d947c..e636c08ba 100644 --- a/src/dht/test_dht_api.c +++ b/src/dht/test_dht_api.c | |||
@@ -179,10 +179,10 @@ static void | |||
179 | test_get_iterator (void *cls, struct GNUNET_TIME_Absolute exp, | 179 | test_get_iterator (void *cls, struct GNUNET_TIME_Absolute exp, |
180 | const GNUNET_HashCode * key, | 180 | const GNUNET_HashCode * key, |
181 | const struct GNUNET_PeerIdentity *get_path, | 181 | const struct GNUNET_PeerIdentity *get_path, |
182 | unsigned int get_path_length, | 182 | unsigned int get_path_length, |
183 | const struct GNUNET_PeerIdentity *put_path, | 183 | const struct GNUNET_PeerIdentity *put_path, |
184 | unsigned int put_path_length, | 184 | unsigned int put_path_length, enum GNUNET_BLOCK_Type type, |
185 | enum GNUNET_BLOCK_Type type, size_t size, const void *data) | 185 | size_t size, const void *data) |
186 | { | 186 | { |
187 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 187 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
188 | "test_get_iterator called (we got a result), stopping get request!\n"); | 188 | "test_get_iterator called (we got a result), stopping get request!\n"); |
@@ -213,9 +213,9 @@ test_get (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
213 | 213 | ||
214 | peer->get_handle = | 214 | peer->get_handle = |
215 | GNUNET_DHT_get_start (peer->dht_handle, TOTAL_TIMEOUT, | 215 | GNUNET_DHT_get_start (peer->dht_handle, TOTAL_TIMEOUT, |
216 | GNUNET_BLOCK_TYPE_TEST, &hash, | 216 | GNUNET_BLOCK_TYPE_TEST, &hash, 1, |
217 | 1, GNUNET_DHT_RO_NONE, NULL, | 217 | GNUNET_DHT_RO_NONE, NULL, 0, &test_get_iterator, |
218 | 0, &test_get_iterator, NULL); | 218 | NULL); |
219 | 219 | ||
220 | if (peer->get_handle == NULL) | 220 | if (peer->get_handle == NULL) |
221 | { | 221 | { |
@@ -250,8 +250,8 @@ test_put (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
250 | 250 | ||
251 | GNUNET_assert (peer->dht_handle != NULL); | 251 | GNUNET_assert (peer->dht_handle != NULL); |
252 | 252 | ||
253 | GNUNET_DHT_put (peer->dht_handle, &hash, 1, | 253 | GNUNET_DHT_put (peer->dht_handle, &hash, 1, GNUNET_DHT_RO_NONE, |
254 | GNUNET_DHT_RO_NONE, GNUNET_BLOCK_TYPE_TEST, data_size, data, | 254 | GNUNET_BLOCK_TYPE_TEST, data_size, data, |
255 | GNUNET_TIME_relative_to_absolute (TOTAL_TIMEOUT), | 255 | GNUNET_TIME_relative_to_absolute (TOTAL_TIMEOUT), |
256 | TOTAL_TIMEOUT, &test_get, &p1); | 256 | TOTAL_TIMEOUT, &test_get, &p1); |
257 | GNUNET_free (data); | 257 | GNUNET_free (data); |