aboutsummaryrefslogtreecommitdiff
path: root/src/integration-tests
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-04-25 13:03:44 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-04-25 13:03:44 +0000
commit1fe2032dbd294989ce839d2b8f9415b3b677b1d7 (patch)
treedf6f8ded35a4a8614897c39408bcd2ccb7137165 /src/integration-tests
parentb70a00756b53bbbbd008ead49c8bf00474807a00 (diff)
downloadgnunet-1fe2032dbd294989ce839d2b8f9415b3b677b1d7.tar.gz
gnunet-1fe2032dbd294989ce839d2b8f9415b3b677b1d7.zip
- coverity bugs
Diffstat (limited to 'src/integration-tests')
-rw-r--r--src/integration-tests/connection_watchdog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/integration-tests/connection_watchdog.c b/src/integration-tests/connection_watchdog.c
index 242322bb6..e2d725c6d 100644
--- a/src/integration-tests/connection_watchdog.c
+++ b/src/integration-tests/connection_watchdog.c
@@ -144,7 +144,7 @@ int map_cleanup_it (void *cls,
144 void *value) 144 void *value)
145{ 145{
146 struct PeerContainer *pc = value; 146 struct PeerContainer *pc = value;
147 GNUNET_CONTAINER_multihashmap_remove(peers, key, value); 147 GNUNET_assert (GNUNET_OK == GNUNET_CONTAINER_multihashmap_remove(peers, key, value));
148 if (NULL != pc->th_ping) 148 if (NULL != pc->th_ping)
149 { 149 {
150 GNUNET_TRANSPORT_notify_transmit_ready_cancel(pc->th_ping); 150 GNUNET_TRANSPORT_notify_transmit_ready_cancel(pc->th_ping);
@@ -927,7 +927,7 @@ core_disconnect_cb (void *cls,
927{ 927{
928 if (0 != memcmp (peer, &my_peer_id, sizeof (struct GNUNET_PeerIdentity))) 928 if (0 != memcmp (peer, &my_peer_id, sizeof (struct GNUNET_PeerIdentity)))
929 { 929 {
930 GNUNET_assert (core_connections >= 0); 930 GNUNET_assert (core_connections > 0);
931 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "CORE disconnect for peer `%s' (%u total)\n", 931 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "CORE disconnect for peer `%s' (%u total)\n",
932 GNUNET_i2s (peer), core_connections); 932 GNUNET_i2s (peer), core_connections);
933 map_disconnect (peer, ch); 933 map_disconnect (peer, ch);