aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/plugin_datacache_sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datacache/plugin_datacache_sqlite.c')
-rw-r--r--src/datacache/plugin_datacache_sqlite.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c
index 0c894556b..d08b32caf 100644
--- a/src/datacache/plugin_datacache_sqlite.c
+++ b/src/datacache/plugin_datacache_sqlite.c
@@ -192,7 +192,7 @@ sqlite_plugin_put (void *cls,
192 enum GNUNET_BLOCK_Type type, 192 enum GNUNET_BLOCK_Type type,
193 struct GNUNET_TIME_Absolute discard_time, 193 struct GNUNET_TIME_Absolute discard_time,
194 unsigned int path_info_len, 194 unsigned int path_info_len,
195 const struct GNUNET_PeerIdentity *path_info) 195 const struct GNUNET_DHT_PathElement *path_info)
196{ 196{
197 struct Plugin *plugin = cls; 197 struct Plugin *plugin = cls;
198 uint32_t type32 = type; 198 uint32_t type32 = type;
@@ -204,7 +204,7 @@ sqlite_plugin_put (void *cls,
204 GNUNET_SQ_query_param_fixed_size (data, size), 204 GNUNET_SQ_query_param_fixed_size (data, size),
205 GNUNET_SQ_query_param_fixed_size (path_info, 205 GNUNET_SQ_query_param_fixed_size (path_info,
206 path_info_len 206 path_info_len
207 * sizeof(struct GNUNET_PeerIdentity)), 207 * sizeof(struct GNUNET_DHT_PathElement)),
208 GNUNET_SQ_query_param_end }; 208 GNUNET_SQ_query_param_end };
209 209
210 LOG (GNUNET_ERROR_TYPE_DEBUG, 210 LOG (GNUNET_ERROR_TYPE_DEBUG,
@@ -265,7 +265,7 @@ sqlite_plugin_get (void *cls,
265 uint32_t off; 265 uint32_t off;
266 unsigned int total; 266 unsigned int total;
267 size_t psize; 267 size_t psize;
268 struct GNUNET_PeerIdentity *path; 268 struct GNUNET_DHT_PathElement *path;
269 struct GNUNET_SQ_QueryParam params_count[] = 269 struct GNUNET_SQ_QueryParam params_count[] =
270 { GNUNET_SQ_query_param_auto_from_type (key), 270 { GNUNET_SQ_query_param_auto_from_type (key),
271 GNUNET_SQ_query_param_uint32 (&type32), 271 GNUNET_SQ_query_param_uint32 (&type32),
@@ -339,13 +339,13 @@ sqlite_plugin_get (void *cls,
339 GNUNET_SQ_reset (plugin->dbh, plugin->get_stmt); 339 GNUNET_SQ_reset (plugin->dbh, plugin->get_stmt);
340 break; 340 break;
341 } 341 }
342 if (0 != psize % sizeof(struct GNUNET_PeerIdentity)) 342 if (0 != psize % sizeof(struct GNUNET_DHT_PathElement))
343 { 343 {
344 GNUNET_break (0); 344 GNUNET_break (0);
345 psize = 0; 345 psize = 0;
346 path = NULL; 346 path = NULL;
347 } 347 }
348 psize /= sizeof(struct GNUNET_PeerIdentity); 348 psize /= sizeof(struct GNUNET_DHT_PathElement);
349 cnt++; 349 cnt++;
350 LOG (GNUNET_ERROR_TYPE_DEBUG, 350 LOG (GNUNET_ERROR_TYPE_DEBUG,
351 "Found %u-byte result when processing GET for key `%s'\n", 351 "Found %u-byte result when processing GET for key `%s'\n",
@@ -476,7 +476,7 @@ sqlite_plugin_get_closest (void *cls,
476 size_t psize; 476 size_t psize;
477 uint32_t type; 477 uint32_t type;
478 struct GNUNET_HashCode hc; 478 struct GNUNET_HashCode hc;
479 struct GNUNET_PeerIdentity *path; 479 struct GNUNET_DHT_PathElement *path;
480 struct GNUNET_SQ_QueryParam params[] = 480 struct GNUNET_SQ_QueryParam params[] =
481 { GNUNET_SQ_query_param_auto_from_type (key), 481 { GNUNET_SQ_query_param_auto_from_type (key),
482 GNUNET_SQ_query_param_absolute_time (&now), 482 GNUNET_SQ_query_param_absolute_time (&now),
@@ -510,13 +510,13 @@ sqlite_plugin_get_closest (void *cls,
510 GNUNET_break (0); 510 GNUNET_break (0);
511 break; 511 break;
512 } 512 }
513 if (0 != psize % sizeof(struct GNUNET_PeerIdentity)) 513 if (0 != psize % sizeof(struct GNUNET_DHT_PathElement))
514 { 514 {
515 GNUNET_break (0); 515 GNUNET_break (0);
516 psize = 0; 516 psize = 0;
517 path = NULL; 517 path = NULL;
518 } 518 }
519 psize /= sizeof(struct GNUNET_PeerIdentity); 519 psize /= sizeof(struct GNUNET_DHT_PathElement);
520 cnt++; 520 cnt++;
521 LOG (GNUNET_ERROR_TYPE_DEBUG, 521 LOG (GNUNET_ERROR_TYPE_DEBUG,
522 "Found %u-byte result at %s when processing GET_CLOSE\n", 522 "Found %u-byte result at %s when processing GET_CLOSE\n",