diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-07-18 13:33:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-07-18 13:33:10 +0000 |
commit | 957ba741a643ac853f7cd6c00f05f41cf57d8d59 (patch) | |
tree | 98acdb5bcf1e0cf959100e7e0416a14ccd270550 /src/datastore/test_plugin_datastore.c | |
parent | d38544730123a1f365ef287a7e88060d97b266b7 (diff) | |
download | gnunet-957ba741a643ac853f7cd6c00f05f41cf57d8d59.tar.gz gnunet-957ba741a643ac853f7cd6c00f05f41cf57d8d59.zip |
-adding missing 'const' decls, fixing indentation / doxygen a bit
Diffstat (limited to 'src/datastore/test_plugin_datastore.c')
-rw-r--r-- | src/datastore/test_plugin_datastore.c | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/src/datastore/test_plugin_datastore.c b/src/datastore/test_plugin_datastore.c index b367b1a7f..d60dc3cc2 100644 --- a/src/datastore/test_plugin_datastore.c +++ b/src/datastore/test_plugin_datastore.c | |||
@@ -84,12 +84,25 @@ disk_utilization_change_cb (void *cls, int delta) | |||
84 | 84 | ||
85 | 85 | ||
86 | static void | 86 | static void |
87 | test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); | 87 | test (void *cls, |
88 | const struct GNUNET_SCHEDULER_TaskContext *tc); | ||
88 | 89 | ||
89 | 90 | ||
91 | /** | ||
92 | * Put continuation. | ||
93 | * | ||
94 | * @param cls closure | ||
95 | * @param key key for the item stored | ||
96 | * @param size size of the item stored | ||
97 | * @param status #GNUNET_OK or #GNUNET_SYSERROR | ||
98 | * @param msg error message on error | ||
99 | */ | ||
90 | static void | 100 | static void |
91 | put_continuation (void *cls, const struct GNUNET_HashCode *key, | 101 | put_continuation (void *cls, |
92 | uint32_t size, int status, char *msg) | 102 | const struct GNUNET_HashCode *key, |
103 | uint32_t size, | ||
104 | int status, | ||
105 | const char *msg) | ||
93 | { | 106 | { |
94 | struct CpsRunContext *crc = cls; | 107 | struct CpsRunContext *crc = cls; |
95 | static unsigned long long os; | 108 | static unsigned long long os; |
@@ -238,7 +251,9 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
238 | 251 | ||
239 | 252 | ||
240 | static void | 253 | static void |
241 | update_continuation (void *cls, int status, char *msg) | 254 | update_continuation (void *cls, |
255 | int status, | ||
256 | const char *msg) | ||
242 | { | 257 | { |
243 | struct CpsRunContext *crc = cls; | 258 | struct CpsRunContext *crc = cls; |
244 | 259 | ||
@@ -285,8 +300,12 @@ test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
285 | GNUNET_BLOCK_TYPE_ANY, &iterate_one_shot, crc); | 300 | GNUNET_BLOCK_TYPE_ANY, &iterate_one_shot, crc); |
286 | break; | 301 | break; |
287 | case RP_UPDATE: | 302 | case RP_UPDATE: |
288 | crc->api->update (crc->api->cls, guid, 1, GNUNET_TIME_UNIT_ZERO_ABS, | 303 | crc->api->update (crc->api->cls, |
289 | update_continuation, crc); | 304 | guid, |
305 | 1, | ||
306 | GNUNET_TIME_UNIT_ZERO_ABS, | ||
307 | &update_continuation, | ||
308 | crc); | ||
290 | break; | 309 | break; |
291 | 310 | ||
292 | case RP_ITER_ZERO: | 311 | case RP_ITER_ZERO: |