struct TransportPlugin *phead;
struct TransportPlugin *ptail;
-int map_check_it (void *cls,
- const GNUNET_HashCode * key,
- void *value)
+static int
+map_check_it (void *cls,
+ const GNUNET_HashCode * key,
+ void *value)
{
int *fail = cls;
struct PeerContainer *pc = value;
}
-int map_cleanup_it (void *cls,
- const GNUNET_HashCode * key,
- void *value)
+static int
+map_cleanup_it (void *cls,
+ const GNUNET_HashCode * key,
+ void *value)
{
struct PeerContainer *pc = value;
GNUNET_assert (GNUNET_OK == GNUNET_CONTAINER_multihashmap_remove(peers, key, value));
return cur;
}
-int stats_check_cb (void *cls, const char *subsystem,
- const char *name, uint64_t value,
- int is_persistent)
+static int
+stats_check_cb (void *cls, const char *subsystem,
+ const char *name, uint64_t value,
+ int is_persistent)
{
static int counter;
GNUNET_NETWORK_STRUCT_END
-size_t send_transport_ping_cb (void *cls, size_t size, void *buf)
+static size_t
+send_transport_ping_cb (void *cls, size_t size, void *buf)
{
struct PeerContainer * pc = cls;
struct PING ping;
return mlen;
}
-size_t send_core_pong_cb (void *cls, size_t size, void *buf)
+static size_t
+send_core_pong_cb (void *cls, size_t size, void *buf)
{
struct PeerContainer * pc = cls;
struct PING ping;
check_task = GNUNET_SCHEDULER_add_now (&map_check, &map_cleanup);
}
-void
+static void
transport_notify_connect_cb (void *cls,
const struct GNUNET_PeerIdentity
* peer,
* @param cls closure
* @param peer the peer that disconnected
*/
-void
+static void
transport_notify_disconnect_cb (void *cls,
const struct
GNUNET_PeerIdentity * peer)
}
}
-int core_notify_receive_cb (void *cls,
- const struct GNUNET_PeerIdentity * peer,
- const struct GNUNET_MessageHeader * message,
- const struct GNUNET_ATS_Information* atsi,
- unsigned int atsi_count)
+static int
+core_notify_receive_cb (void *cls,
+ const struct GNUNET_PeerIdentity * peer,
+ const struct GNUNET_MessageHeader * message,
+ const struct GNUNET_ATS_Information* atsi,
+ unsigned int atsi_count)
{
struct PeerContainer *pc = NULL;