diff options
author | Gabor X Toth <*@tg-x.net> | 2013-10-10 18:08:47 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2013-10-10 18:08:47 +0000 |
commit | 1d76e223b23cfcc6c0b102be41cc81a5672a05ac (patch) | |
tree | d74a08615d750ee9b696f9c8accae97057620944 /src/psycstore/test_psycstore.c | |
parent | 25e99b83403ec04e691ed5543765e267705c125d (diff) | |
download | gnunet-1d76e223b23cfcc6c0b102be41cc81a5672a05ac.tar.gz gnunet-1d76e223b23cfcc6c0b102be41cc81a5672a05ac.zip |
PSYCstore: result_code arg for CountersCallback
Diffstat (limited to 'src/psycstore/test_psycstore.c')
-rw-r--r-- | src/psycstore/test_psycstore.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/psycstore/test_psycstore.c b/src/psycstore/test_psycstore.c index cca3c808d..ff4e208eb 100644 --- a/src/psycstore/test_psycstore.c +++ b/src/psycstore/test_psycstore.c | |||
@@ -231,14 +231,16 @@ state_get_result (void *cls, int64_t result, const char *err_msg) | |||
231 | 231 | ||
232 | 232 | ||
233 | void | 233 | void |
234 | counters_result (void *cls, uint64_t max_fragment_id, uint64_t max_message_id, | 234 | counters_result (void *cls, int status, uint64_t max_fragment_id, |
235 | uint64_t max_group_generation, uint64_t max_state_message_id) | 235 | uint64_t max_message_id, uint64_t max_group_generation, |
236 | uint64_t max_state_message_id) | ||
236 | { | 237 | { |
237 | struct FragmentClosure *fcls = cls; | 238 | struct FragmentClosure *fcls = cls; |
238 | int result = 0; | 239 | int result = 0; |
239 | op = NULL; | 240 | op = NULL; |
240 | 241 | ||
241 | if (max_fragment_id == GNUNET_ntohll (fcls->msg[2]->fragment_id) | 242 | if (GNUNET_OK == status |
243 | && max_fragment_id == GNUNET_ntohll (fcls->msg[2]->fragment_id) | ||
242 | && max_message_id == GNUNET_ntohll (fcls->msg[2]->message_id) | 244 | && max_message_id == GNUNET_ntohll (fcls->msg[2]->message_id) |
243 | && max_group_generation == GNUNET_ntohll (fcls->msg[2]->group_generation) | 245 | && max_group_generation == GNUNET_ntohll (fcls->msg[2]->group_generation) |
244 | && max_state_message_id == GNUNET_ntohll (fcls->msg[0]->message_id)) | 246 | && max_state_message_id == GNUNET_ntohll (fcls->msg[0]->message_id)) |