aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-01-12 09:26:18 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-01-12 09:26:18 +0000
commit78e65a25a576101d5e00b36fd1a93353d900ea2d (patch)
tree670da4b4a05aa7c179fa706ad5014e174e40e32b
parentd02848717c9dd82af12967f9de0b7d6c806bd16a (diff)
downloadgnunet-78e65a25a576101d5e00b36fd1a93353d900ea2d.tar.gz
gnunet-78e65a25a576101d5e00b36fd1a93353d900ea2d.zip
fix compile errors
-rw-r--r--src/vpn/gnunet-service-vpn.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c
index f6b4f73e2..81040c636 100644
--- a/src/vpn/gnunet-service-vpn.c
+++ b/src/vpn/gnunet-service-vpn.c
@@ -1755,17 +1755,19 @@ cleanup_destination (void *cls,
1755 void *value) 1755 void *value)
1756{ 1756{
1757 struct DestinationEntry *de = value; 1757 struct DestinationEntry *de = value;
1758 1758
1759 if (NULL != de->tunnel) 1759 if (NULL != de->tunnel)
1760 { 1760 {
1761 GNUNET_MESH_tunnel_destroy (de->tunnel); 1761 GNUNET_MESH_tunnel_destroy (de->tunnel);
1762 de->tunnel = NULL; 1762 de->tunnel = NULL;
1763 } 1763 }
1764 /*
1764 if (NULL != ts->heap_node) 1765 if (NULL != ts->heap_node)
1765 { 1766 {
1766 GNUNET_CONTAINER_heap_remove_node (ts->heap_node); 1767 GNUNET_CONTAINER_heap_remove_node (ts->heap_node);
1767 ts->heap_node = NULL; 1768 ts->heap_node = NULL;
1768 } 1769 }
1770 */
1769 GNUNET_free (de); 1771 GNUNET_free (de);
1770 return GNUNET_OK; 1772 return GNUNET_OK;
1771} 1773}
@@ -1796,7 +1798,7 @@ cleanup_tunnel (void *cls,
1796 } 1798 }
1797 if (NULL != ts->client) 1799 if (NULL != ts->client)
1798 { 1800 {
1799 GNUNET_SERVER_cliet_drop (ts->client); 1801 GNUNET_SERVER_client_drop (ts->client);
1800 ts->client = NULL; 1802 ts->client = NULL;
1801 } 1803 }
1802 if (NULL != ts->th) 1804 if (NULL != ts->th)
@@ -1891,12 +1893,12 @@ cleanup_tunnel_client (void *cls,
1891 const GNUNET_HashCode *key, 1893 const GNUNET_HashCode *key,
1892 void *value) 1894 void *value)
1893{ 1895{
1894 struct GNUNET_SERVER_Client *client; 1896 struct GNUNET_SERVER_Client *client = cls;
1895 struct TunnelState *ts = value; 1897 struct TunnelState *ts = value;
1896 1898
1897 if (client == ts->client) 1899 if (client == ts->client)
1898 { 1900 {
1899 GNUNET_SERVER_cliet_drop (ts->client); 1901 GNUNET_SERVER_client_drop (ts->client);
1900 ts->client = NULL; 1902 ts->client = NULL;
1901 } 1903 }
1902 return GNUNET_OK; 1904 return GNUNET_OK;