diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-04-26 12:04:49 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-04-26 12:04:49 +0000 |
commit | 037e7b97ce7cd3fcb290f8c3ded50616b41180a0 (patch) | |
tree | 6f36cd6f5ed6c7d99d87ca3687f78c6c41a22f24 /src/integration-tests | |
parent | 435eded3cf216363f75e1904254c22c7c5fd987a (diff) | |
download | gnunet-037e7b97ce7cd3fcb290f8c3ded50616b41180a0.tar.gz gnunet-037e7b97ce7cd3fcb290f8c3ded50616b41180a0.zip |
-static
Diffstat (limited to 'src/integration-tests')
-rw-r--r-- | src/integration-tests/connection_watchdog.c | 42 |
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 | |||
119 | struct TransportPlugin *phead; | 119 | struct TransportPlugin *phead; |
120 | struct TransportPlugin *ptail; | 120 | struct TransportPlugin *ptail; |
121 | 121 | ||
122 | int map_check_it (void *cls, | 122 | static int |
123 | const GNUNET_HashCode * key, | 123 | map_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 | ||
142 | int map_cleanup_it (void *cls, | 143 | static int |
143 | const GNUNET_HashCode * key, | 144 | map_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 | ||
279 | int stats_check_cb (void *cls, const char *subsystem, | 281 | static int |
280 | const char *name, uint64_t value, | 282 | stats_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 | |||
397 | GNUNET_NETWORK_STRUCT_END | 400 | GNUNET_NETWORK_STRUCT_END |
398 | 401 | ||
399 | 402 | ||
400 | size_t send_transport_ping_cb (void *cls, size_t size, void *buf) | 403 | static size_t |
404 | send_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 | ||
531 | size_t send_core_pong_cb (void *cls, size_t size, void *buf) | 535 | static size_t |
536 | send_core_pong_cb (void *cls, size_t size, void *buf) | ||
532 | { | 537 | { |
533 | struct PeerContainer * pc = cls; | 538 | struct PeerContainer * pc = cls; |
534 | struct PING ping; | 539 | struct 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 | ||
772 | void | 777 | static void |
773 | transport_notify_connect_cb (void *cls, | 778 | transport_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 | */ |
793 | void | 798 | static void |
794 | transport_notify_disconnect_cb (void *cls, | 799 | transport_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 | ||
856 | int core_notify_receive_cb (void *cls, | 861 | static int |
857 | const struct GNUNET_PeerIdentity * peer, | 862 | core_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 | ||