diff options
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/gnunet-service-mesh.c | 6 | ||||
-rw-r--r-- | src/mesh/mesh_api.c | 21 |
2 files changed, 2 insertions, 25 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 31e0dc901..aa9ae888c 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c | |||
@@ -623,7 +623,7 @@ announce_application (void *cls, const GNUNET_HashCode * key, void *value) | |||
623 | { | 623 | { |
624 | /* FIXME are hashes in multihash map equal on all aquitectures? */ | 624 | /* FIXME are hashes in multihash map equal on all aquitectures? */ |
625 | /* FIXME: keep return value of 'put' to possibly cancel!? */ | 625 | /* FIXME: keep return value of 'put' to possibly cancel!? */ |
626 | GNUNET_DHT_put (dht_handle, key, 10U, | 626 | GNUNET_DHT_put (dht_handle, key, 10, |
627 | GNUNET_DHT_RO_RECORD_ROUTE | | 627 | GNUNET_DHT_RO_RECORD_ROUTE | |
628 | GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE, GNUNET_BLOCK_TYPE_TEST, | 628 | GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE, GNUNET_BLOCK_TYPE_TEST, |
629 | sizeof (struct GNUNET_PeerIdentity), | 629 | sizeof (struct GNUNET_PeerIdentity), |
@@ -692,12 +692,8 @@ announce_id (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
692 | (char *) &my_full_id, /* Data itself */ | 692 | (char *) &my_full_id, /* Data itself */ |
693 | GNUNET_TIME_absolute_get_forever (), /* Data expiration */ | 693 | GNUNET_TIME_absolute_get_forever (), /* Data expiration */ |
694 | GNUNET_TIME_UNIT_FOREVER_REL, /* Retry time */ | 694 | GNUNET_TIME_UNIT_FOREVER_REL, /* Retry time */ |
695 | #if MESH_DEBUG_DHT | ||
696 | &mesh_debug, "DHT_put for id completed"); | ||
697 | #else | ||
698 | NULL, /* Continuation */ | 695 | NULL, /* Continuation */ |
699 | NULL); /* Continuation closure */ | 696 | NULL); /* Continuation closure */ |
700 | #endif | ||
701 | announce_id_task = | 697 | announce_id_task = |
702 | GNUNET_SCHEDULER_add_delayed (ID_ANNOUNCE_TIME, &announce_id, cls); | 698 | GNUNET_SCHEDULER_add_delayed (ID_ANNOUNCE_TIME, &announce_id, cls); |
703 | } | 699 | } |
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 7332d0c3d..de931db7c 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c | |||
@@ -28,14 +28,6 @@ | |||
28 | * - SEND FUNCTIONS | 28 | * - SEND FUNCTIONS |
29 | * - API CALL DEFINITIONS | 29 | * - API CALL DEFINITIONS |
30 | */ | 30 | */ |
31 | #ifdef __cplusplus | ||
32 | extern "C" | ||
33 | { | ||
34 | #if 0 /* keep Emacsens' auto-indent happy */ | ||
35 | } | ||
36 | #endif | ||
37 | #endif | ||
38 | |||
39 | #include "platform.h" | 31 | #include "platform.h" |
40 | #include "gnunet_common.h" | 32 | #include "gnunet_common.h" |
41 | #include "gnunet_client_lib.h" | 33 | #include "gnunet_client_lib.h" |
@@ -45,13 +37,8 @@ extern "C" | |||
45 | #include "mesh.h" | 37 | #include "mesh.h" |
46 | #include "mesh_protocol.h" | 38 | #include "mesh_protocol.h" |
47 | 39 | ||
48 | #define MESH_API_DEBUG GNUNET_YES | ||
49 | |||
50 | #if MESH_API_DEBUG | ||
51 | #define LOG(kind,...) GNUNET_log_from (kind, "mesh-api",__VA_ARGS__) | 40 | #define LOG(kind,...) GNUNET_log_from (kind, "mesh-api",__VA_ARGS__) |
52 | #else | 41 | |
53 | #define LOG(kind,...) | ||
54 | #endif | ||
55 | 42 | ||
56 | /******************************************************************************/ | 43 | /******************************************************************************/ |
57 | /************************ DATA STRUCTURES ****************************/ | 44 | /************************ DATA STRUCTURES ****************************/ |
@@ -1717,9 +1704,3 @@ GNUNET_MESH_tunnel_get_data (struct GNUNET_MESH_Tunnel *tunnel) | |||
1717 | } | 1704 | } |
1718 | 1705 | ||
1719 | 1706 | ||
1720 | #if 0 /* keep Emacsens' auto-indent happy */ | ||
1721 | { | ||
1722 | #endif | ||
1723 | #ifdef __cplusplus | ||
1724 | } | ||
1725 | #endif | ||