diff options
Diffstat (limited to 'src/datastore/perf_plugin_datastore.c')
-rw-r--r-- | src/datastore/perf_plugin_datastore.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/datastore/perf_plugin_datastore.c b/src/datastore/perf_plugin_datastore.c index 4b1bdabde..fec090571 100644 --- a/src/datastore/perf_plugin_datastore.c +++ b/src/datastore/perf_plugin_datastore.c | |||
@@ -103,7 +103,7 @@ putValue (struct GNUNET_DATASTORE_PluginFunctions *api, int i, int k) | |||
103 | { | 103 | { |
104 | char value[65536]; | 104 | char value[65536]; |
105 | size_t size; | 105 | size_t size; |
106 | static GNUNET_HashCode key; | 106 | static struct GNUNET_HashCode key; |
107 | static int ic; | 107 | static int ic; |
108 | char *msg; | 108 | char *msg; |
109 | unsigned int prio; | 109 | unsigned int prio; |
@@ -116,7 +116,7 @@ putValue (struct GNUNET_DATASTORE_PluginFunctions *api, int i, int k) | |||
116 | 116 | ||
117 | /* generate random key */ | 117 | /* generate random key */ |
118 | key.bits[0] = (unsigned int) GNUNET_TIME_absolute_get ().abs_value; | 118 | key.bits[0] = (unsigned int) GNUNET_TIME_absolute_get ().abs_value; |
119 | GNUNET_CRYPTO_hash (&key, sizeof (GNUNET_HashCode), &key); | 119 | GNUNET_CRYPTO_hash (&key, sizeof (struct GNUNET_HashCode), &key); |
120 | memset (value, i, size); | 120 | memset (value, i, size); |
121 | if (i > 255) | 121 | if (i > 255) |
122 | memset (value, i - 255, size / 2); | 122 | memset (value, i - 255, size / 2); |
@@ -149,7 +149,7 @@ test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); | |||
149 | 149 | ||
150 | 150 | ||
151 | static int | 151 | static int |
152 | iterate_zeros (void *cls, const GNUNET_HashCode * key, uint32_t size, | 152 | iterate_zeros (void *cls, const struct GNUNET_HashCode * key, uint32_t size, |
153 | const void *data, enum GNUNET_BLOCK_Type type, uint32_t priority, | 153 | const void *data, enum GNUNET_BLOCK_Type type, uint32_t priority, |
154 | uint32_t anonymity, struct GNUNET_TIME_Absolute expiration, | 154 | uint32_t anonymity, struct GNUNET_TIME_Absolute expiration, |
155 | uint64_t uid) | 155 | uint64_t uid) |
@@ -196,7 +196,7 @@ iterate_zeros (void *cls, const GNUNET_HashCode * key, uint32_t size, | |||
196 | 196 | ||
197 | 197 | ||
198 | static int | 198 | static int |
199 | expiration_get (void *cls, const GNUNET_HashCode * key, uint32_t size, | 199 | expiration_get (void *cls, const struct GNUNET_HashCode * key, uint32_t size, |
200 | const void *data, enum GNUNET_BLOCK_Type type, | 200 | const void *data, enum GNUNET_BLOCK_Type type, |
201 | uint32_t priority, uint32_t anonymity, | 201 | uint32_t priority, uint32_t anonymity, |
202 | struct GNUNET_TIME_Absolute expiration, uint64_t uid) | 202 | struct GNUNET_TIME_Absolute expiration, uint64_t uid) |
@@ -241,7 +241,7 @@ expiration_get (void *cls, const GNUNET_HashCode * key, uint32_t size, | |||
241 | 241 | ||
242 | 242 | ||
243 | static int | 243 | static int |
244 | replication_get (void *cls, const GNUNET_HashCode * key, uint32_t size, | 244 | replication_get (void *cls, const struct GNUNET_HashCode * key, uint32_t size, |
245 | const void *data, enum GNUNET_BLOCK_Type type, | 245 | const void *data, enum GNUNET_BLOCK_Type type, |
246 | uint32_t priority, uint32_t anonymity, | 246 | uint32_t priority, uint32_t anonymity, |
247 | struct GNUNET_TIME_Absolute expiration, uint64_t uid) | 247 | struct GNUNET_TIME_Absolute expiration, uint64_t uid) |