aboutsummaryrefslogtreecommitdiff
path: root/src/pq/test_pq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pq/test_pq.c')
-rw-r--r--src/pq/test_pq.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pq/test_pq.c b/src/pq/test_pq.c
index 1df1cd126..ffbb4d129 100644
--- a/src/pq/test_pq.c
+++ b/src/pq/test_pq.c
@@ -38,7 +38,7 @@ static int ret;
38/** 38/**
39 * An event handler. 39 * An event handler.
40 */ 40 */
41static struct GNUNET_PQ_EventHandler *eh; 41static struct GNUNET_DB_EventHandler *eh;
42 42
43/** 43/**
44 * Timeout task. 44 * Timeout task.
@@ -129,7 +129,7 @@ run_queries (struct GNUNET_PQ_Context *db)
129 uint64_t u64; 129 uint64_t u64;
130 uint64_t u642; 130 uint64_t u642;
131 uint64_t uzzz = 42; 131 uint64_t uzzz = 42;
132 132
133 priv = GNUNET_CRYPTO_rsa_private_key_create (1024); 133 priv = GNUNET_CRYPTO_rsa_private_key_create (1024);
134 pub = GNUNET_CRYPTO_rsa_private_key_get_public (priv); 134 pub = GNUNET_CRYPTO_rsa_private_key_get_public (priv);
135 memset (&hmsg, 42, sizeof(hmsg)); 135 memset (&hmsg, 42, sizeof(hmsg));
@@ -264,16 +264,16 @@ event_cb (void *cls,
264static int 264static int
265test_notify (struct GNUNET_PQ_Context *db) 265test_notify (struct GNUNET_PQ_Context *db)
266{ 266{
267 struct GNUNET_PQ_EventHeaderP e1 = { 267 struct GNUNET_DB_EventHeaderP e1 = {
268 .size = htons (sizeof (e1)), 268 .size = htons (sizeof (e1)),
269 .type = htons (1) 269 .type = htons (1)
270 }; 270 };
271 struct GNUNET_PQ_EventHeaderP e2 = { 271 struct GNUNET_DB_EventHeaderP e2 = {
272 .size = htons (sizeof (e2)), 272 .size = htons (sizeof (e2)),
273 .type = htons (2) 273 .type = htons (2)
274 }; 274 };
275 unsigned int called = 0; 275 unsigned int called = 0;
276 struct GNUNET_PQ_EventHandler *eh; 276 struct GNUNET_DB_EventHandler *eh;
277 277
278 eh = GNUNET_PQ_event_listen (db, 278 eh = GNUNET_PQ_event_listen (db,
279 &e1, 279 &e1,
@@ -359,7 +359,7 @@ event_sched_cb (void *cls,
359static void 359static void
360sched_tests (void *cls) 360sched_tests (void *cls)
361{ 361{
362 struct GNUNET_PQ_EventHeaderP es = { 362 struct GNUNET_DB_EventHeaderP es = {
363 .size = htons (sizeof (es)), 363 .size = htons (sizeof (es)),
364 .type = htons (42) 364 .type = htons (42)
365 }; 365 };
@@ -382,7 +382,7 @@ sched_tests (void *cls)
382 5); 382 5);
383} 383}
384 384
385 385
386int 386int
387main (int argc, 387main (int argc,
388 const char *const argv[]) 388 const char *const argv[])