From: Julius Bünger Date: Fri, 10 Aug 2018 10:50:39 +0000 (+0200) Subject: Make non-exported functions static X-Git-Tag: v0.11.0~309^2~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0d0cf87380b06ee7a268bb5326787a12b17fbafe;p=oweals%2Fgnunet.git Make non-exported functions static --- 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;