summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-05-13 14:46:20 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-05-13 14:46:20 +0000
commit11dc334be2fb942c65745b9605c619968655fdd5 (patch)
tree50706249f9d5fdc64a54a62f39e2289bdecaa30e /src
parentd7a4acf7971533111c19ec56b2e145d200ca1cae (diff)
- fix compile-time warning
Diffstat (limited to 'src')
-rw-r--r--src/testbed/gnunet-service-testbed_cache.c3
-rw-r--r--src/testbed/gnunet-service-testbed_oc.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/testbed/gnunet-service-testbed_cache.c b/src/testbed/gnunet-service-testbed_cache.c
index 6a93b2639..1022c0959 100644
--- a/src/testbed/gnunet-service-testbed_cache.c
+++ b/src/testbed/gnunet-service-testbed_cache.c
@@ -793,6 +793,7 @@ cache_get_handle (unsigned int peer_id, struct GSTCacheGetHandle *cgh,
}
return cgh;
}
+ op = NULL;
switch (cgh->type)
{
case CGT_TRANSPORT_HANDLE:
@@ -809,6 +810,8 @@ cache_get_handle (unsigned int peer_id, struct GSTCacheGetHandle *cgh,
&oprelease_get_handle_core);
entry->core_op = op;
break;
+ default:
+ GNUNET_assert (0);
}
GNUNET_TESTBED_operation_queue_insert_ (GST_opq_openfds, op);
GNUNET_TESTBED_operation_begin_wait_ (op);
diff --git a/src/testbed/gnunet-service-testbed_oc.c b/src/testbed/gnunet-service-testbed_oc.c
index 418defb25..455de4178 100644
--- a/src/testbed/gnunet-service-testbed_oc.c
+++ b/src/testbed/gnunet-service-testbed_oc.c
@@ -777,7 +777,7 @@ occ_hello_sent_cb (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
GNUNET_asprintf (&occ->emsg,
"0x%llx: Timeout during TRANSPORT_try_connect() "
"at peer %4s", occ->op_id,
- GNUNET_i2s(&occ->peer_identity));
+ GNUNET_i2s(&occ->other_peer_identity));
lp2c->tcc.pid = &occ->peer_identity;
lp2c->tcc.op_id = occ->op_id;
lp2c->tcc.task = GNUNET_SCHEDULER_add_now (&try_connect_task, &lp2c->tcc);