From 0d0cf87380b06ee7a268bb5326787a12b17fbafe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Fri, 10 Aug 2018 12:50:39 +0200 Subject: [PATCH] Make non-exported functions static --- src/rps/gnunet-service-rps.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 8e8320a53..807e2bc12 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c @@ -1486,7 +1486,7 @@ Peers_indicate_sending_intention (const struct GNUNET_PeerIdentity *peer) * @return #GNUNET_YES if peer has the intention to send * #GNUNET_NO otherwise */ -int +static int Peers_check_peer_send_intention (const struct GNUNET_PeerIdentity *peer) { const struct PeerContext *peer_ctx; @@ -1510,7 +1510,7 @@ Peers_check_peer_send_intention (const struct GNUNET_PeerIdentity *peer) * @return initial channel context for the channel * (can be NULL -- that's not an error) */ -void * +static void * Peers_handle_inbound_channel (void *cls, struct GNUNET_CADET_Channel *channel, const struct GNUNET_PeerIdentity *initiator) @@ -1556,7 +1556,7 @@ Peers_handle_inbound_channel (void *cls, * @return #GNUNET_YES if a sending channel towards that peer exists * #GNUNET_NO otherwise */ -int +static int Peers_check_sending_channel_exists (const struct GNUNET_PeerIdentity *peer) { struct PeerContext *peer_ctx; @@ -1586,7 +1586,7 @@ Peers_check_sending_channel_exists (const struct GNUNET_PeerIdentity *peer) * @return #GNUNET_YES if the given chennel is the sending channel of the peer * #GNUNET_NO otherwise */ -int +static int Peers_check_channel_role (const struct GNUNET_PeerIdentity *peer, const struct GNUNET_CADET_Channel *channel, enum Peers_ChannelRole role) @@ -1626,7 +1626,7 @@ Peers_check_channel_role (const struct GNUNET_PeerIdentity *peer, * @return #GNUNET_YES if channel was destroyed * #GNUNET_NO otherwise */ -int +static int Peers_destroy_sending_channel (const struct GNUNET_PeerIdentity *peer) { struct PeerContext *peer_ctx; @@ -1655,7 +1655,7 @@ Peers_destroy_sending_channel (const struct GNUNET_PeerIdentity *peer) * @param ev envelope of the message * @param type type of the message */ -void +static void Peers_send_message (const struct GNUNET_PeerIdentity *peer, struct GNUNET_MQ_Envelope *ev, const char *type) @@ -1685,7 +1685,7 @@ Peers_send_message (const struct GNUNET_PeerIdentity *peer, * @return #GNUNET_YES if the operation was scheduled * #GNUNET_NO otherwise */ -int +static int Peers_schedule_operation (const struct GNUNET_PeerIdentity *peer, const PeerOp peer_op) { @@ -1718,7 +1718,7 @@ Peers_schedule_operation (const struct GNUNET_PeerIdentity *peer, * * @return The recv_channel. */ -struct GNUNET_CADET_Channel * +static struct GNUNET_CADET_Channel * Peers_get_recv_channel (const struct GNUNET_PeerIdentity *peer) { struct PeerContext *peer_ctx; -- 2.25.1