aboutsummaryrefslogtreecommitdiff
path: root/src/integration-tests
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-26 12:04:49 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-26 12:04:49 +0000
commit037e7b97ce7cd3fcb290f8c3ded50616b41180a0 (patch)
tree6f36cd6f5ed6c7d99d87ca3687f78c6c41a22f24 /src/integration-tests
parent435eded3cf216363f75e1904254c22c7c5fd987a (diff)
downloadgnunet-037e7b97ce7cd3fcb290f8c3ded50616b41180a0.tar.gz
gnunet-037e7b97ce7cd3fcb290f8c3ded50616b41180a0.zip
-static
Diffstat (limited to 'src/integration-tests')
-rw-r--r--src/integration-tests/connection_watchdog.c42
1 files changed, 24 insertions, 18 deletions
diff --git a/src/integration-tests/connection_watchdog.c b/src/integration-tests/connection_watchdog.c
index e2d725c6d..ff65a9474 100644
--- a/src/integration-tests/connection_watchdog.c
+++ b/src/integration-tests/connection_watchdog.c
@@ -119,9 +119,10 @@ struct TransportPlugin
119struct TransportPlugin *phead; 119struct TransportPlugin *phead;
120struct TransportPlugin *ptail; 120struct TransportPlugin *ptail;
121 121
122int map_check_it (void *cls, 122static int
123 const GNUNET_HashCode * key, 123map_check_it (void *cls,
124 void *value) 124 const GNUNET_HashCode * key,
125 void *value)
125{ 126{
126 int *fail = cls; 127 int *fail = cls;
127 struct PeerContainer *pc = value; 128 struct PeerContainer *pc = value;
@@ -139,9 +140,10 @@ int map_check_it (void *cls,
139} 140}
140 141
141 142
142int map_cleanup_it (void *cls, 143static int
143 const GNUNET_HashCode * key, 144map_cleanup_it (void *cls,
144 void *value) 145 const GNUNET_HashCode * key,
146 void *value)
145{ 147{
146 struct PeerContainer *pc = value; 148 struct PeerContainer *pc = value;
147 GNUNET_assert (GNUNET_OK == GNUNET_CONTAINER_multihashmap_remove(peers, key, value)); 149 GNUNET_assert (GNUNET_OK == GNUNET_CONTAINER_multihashmap_remove(peers, key, value));
@@ -276,9 +278,10 @@ find_plugin (char * name)
276 return cur; 278 return cur;
277} 279}
278 280
279int stats_check_cb (void *cls, const char *subsystem, 281static int
280 const char *name, uint64_t value, 282stats_check_cb (void *cls, const char *subsystem,
281 int is_persistent) 283 const char *name, uint64_t value,
284 int is_persistent)
282{ 285{
283 static int counter; 286 static int counter;
284 287
@@ -397,7 +400,8 @@ struct PONG
397GNUNET_NETWORK_STRUCT_END 400GNUNET_NETWORK_STRUCT_END
398 401
399 402
400size_t send_transport_ping_cb (void *cls, size_t size, void *buf) 403static size_t
404send_transport_ping_cb (void *cls, size_t size, void *buf)
401{ 405{
402 struct PeerContainer * pc = cls; 406 struct PeerContainer * pc = cls;
403 struct PING ping; 407 struct PING ping;
@@ -528,7 +532,8 @@ size_t send_transport_pong_cb (void *cls, size_t size, void *buf)
528 return mlen; 532 return mlen;
529} 533}
530 534
531size_t send_core_pong_cb (void *cls, size_t size, void *buf) 535static size_t
536send_core_pong_cb (void *cls, size_t size, void *buf)
532{ 537{
533struct PeerContainer * pc = cls; 538struct PeerContainer * pc = cls;
534struct PING ping; 539struct PING ping;
@@ -769,7 +774,7 @@ cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
769 check_task = GNUNET_SCHEDULER_add_now (&map_check, &map_cleanup); 774 check_task = GNUNET_SCHEDULER_add_now (&map_check, &map_cleanup);
770} 775}
771 776
772void 777static void
773transport_notify_connect_cb (void *cls, 778transport_notify_connect_cb (void *cls,
774 const struct GNUNET_PeerIdentity 779 const struct GNUNET_PeerIdentity
775 * peer, 780 * peer,
@@ -790,7 +795,7 @@ transport_notify_connect_cb (void *cls,
790 * @param cls closure 795 * @param cls closure
791 * @param peer the peer that disconnected 796 * @param peer the peer that disconnected
792 */ 797 */
793void 798static void
794transport_notify_disconnect_cb (void *cls, 799transport_notify_disconnect_cb (void *cls,
795 const struct 800 const struct
796 GNUNET_PeerIdentity * peer) 801 GNUNET_PeerIdentity * peer)
@@ -853,11 +858,12 @@ transport_notify_receive_cb (void *cls,
853 } 858 }
854} 859}
855 860
856int core_notify_receive_cb (void *cls, 861static int
857 const struct GNUNET_PeerIdentity * peer, 862core_notify_receive_cb (void *cls,
858 const struct GNUNET_MessageHeader * message, 863 const struct GNUNET_PeerIdentity * peer,
859 const struct GNUNET_ATS_Information* atsi, 864 const struct GNUNET_MessageHeader * message,
860 unsigned int atsi_count) 865 const struct GNUNET_ATS_Information* atsi,
866 unsigned int atsi_count)
861{ 867{
862 struct PeerContainer *pc = NULL; 868 struct PeerContainer *pc = NULL;
863 869