diff options
Diffstat (limited to 'src/datacache/plugin_datacache_heap.c')
-rw-r--r-- | src/datacache/plugin_datacache_heap.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/datacache/plugin_datacache_heap.c b/src/datacache/plugin_datacache_heap.c index 20d18458d..fbd3aea9a 100644 --- a/src/datacache/plugin_datacache_heap.c +++ b/src/datacache/plugin_datacache_heap.c | |||
@@ -80,7 +80,7 @@ struct Value | |||
80 | /** | 80 | /** |
81 | * Path information. | 81 | * Path information. |
82 | */ | 82 | */ |
83 | struct GNUNET_PeerIdentity *path_info; | 83 | struct GNUNET_DHT_PathElement *path_info; |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * Payload (actual payload follows this struct) | 86 | * Payload (actual payload follows this struct) |
@@ -125,7 +125,7 @@ struct PutContext | |||
125 | /** | 125 | /** |
126 | * Path information. | 126 | * Path information. |
127 | */ | 127 | */ |
128 | const struct GNUNET_PeerIdentity *path_info; | 128 | const struct GNUNET_DHT_PathElement *path_info; |
129 | 129 | ||
130 | /** | 130 | /** |
131 | * Number of bytes in @e data. | 131 | * Number of bytes in @e data. |
@@ -181,7 +181,8 @@ put_cb (void *cls, | |||
181 | put_ctx->path_info_len); | 181 | put_ctx->path_info_len); |
182 | GNUNET_memcpy (val->path_info, | 182 | GNUNET_memcpy (val->path_info, |
183 | put_ctx->path_info, | 183 | put_ctx->path_info, |
184 | put_ctx->path_info_len * sizeof(struct GNUNET_PeerIdentity)); | 184 | put_ctx->path_info_len * sizeof(struct |
185 | GNUNET_DHT_PathElement)); | ||
185 | GNUNET_CONTAINER_heap_update_cost (val->hn, | 186 | GNUNET_CONTAINER_heap_update_cost (val->hn, |
186 | val->discard_time.abs_value_us); | 187 | val->discard_time.abs_value_us); |
187 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 188 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -219,7 +220,7 @@ heap_plugin_put (void *cls, | |||
219 | enum GNUNET_BLOCK_Type type, | 220 | enum GNUNET_BLOCK_Type type, |
220 | struct GNUNET_TIME_Absolute discard_time, | 221 | struct GNUNET_TIME_Absolute discard_time, |
221 | unsigned int path_info_len, | 222 | unsigned int path_info_len, |
222 | const struct GNUNET_PeerIdentity *path_info) | 223 | const struct GNUNET_DHT_PathElement *path_info) |
223 | { | 224 | { |
224 | struct Plugin *plugin = cls; | 225 | struct Plugin *plugin = cls; |
225 | struct Value *val; | 226 | struct Value *val; |
@@ -255,7 +256,7 @@ heap_plugin_put (void *cls, | |||
255 | path_info_len); | 256 | path_info_len); |
256 | GNUNET_memcpy (val->path_info, | 257 | GNUNET_memcpy (val->path_info, |
257 | path_info, | 258 | path_info, |
258 | path_info_len * sizeof(struct GNUNET_PeerIdentity)); | 259 | path_info_len * sizeof(struct GNUNET_DHT_PathElement)); |
259 | (void) GNUNET_CONTAINER_multihashmap_put (plugin->map, | 260 | (void) GNUNET_CONTAINER_multihashmap_put (plugin->map, |
260 | &val->key, | 261 | &val->key, |
261 | val, | 262 | val, |