From d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb Mon Sep 17 00:00:00 2001 From: ng0 Date: Sun, 8 Sep 2019 12:33:09 +0000 Subject: uncrustify as demanded. --- src/rps/gnunet-service-rps_sampler.h | 44 ++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/rps/gnunet-service-rps_sampler.h') diff --git a/src/rps/gnunet-service-rps_sampler.h b/src/rps/gnunet-service-rps_sampler.h index d8e5f3efd..8bccb8431 100644 --- a/src/rps/gnunet-service-rps_sampler.h +++ b/src/rps/gnunet-service-rps_sampler.h @@ -11,12 +11,12 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . SPDX-License-Identifier: AGPL3.0-or-later -*/ + */ /** * @file rps/gnunet-service-rps_sampler.h @@ -48,7 +48,7 @@ struct RPS_SamplerRequestHandle; * @return the size of the sampler */ unsigned int -RPS_sampler_get_size (struct RPS_Sampler *sampler); +RPS_sampler_get_size(struct RPS_Sampler *sampler); /** @@ -58,7 +58,7 @@ RPS_sampler_get_size (struct RPS_Sampler *sampler); * @param new_size the new size of the sampler (not 0) */ void -RPS_sampler_resize (struct RPS_Sampler *sampler, unsigned int new_size); +RPS_sampler_resize(struct RPS_Sampler *sampler, unsigned int new_size); /** @@ -69,8 +69,8 @@ RPS_sampler_resize (struct RPS_Sampler *sampler, unsigned int new_size); * @return a handle to a sampler that consists of sampler elements. */ struct RPS_Sampler * -RPS_sampler_init (size_t init_size, - struct GNUNET_TIME_Relative max_round_interval); +RPS_sampler_init(size_t init_size, + struct GNUNET_TIME_Relative max_round_interval); /** @@ -79,9 +79,9 @@ RPS_sampler_init (size_t init_size, * @param sampler the sampler to update. * @param id the PeerID that is put in the sampler */ - void -RPS_sampler_update (struct RPS_Sampler *sampler, - const struct GNUNET_PeerIdentity *id); +void +RPS_sampler_update(struct RPS_Sampler *sampler, + const struct GNUNET_PeerIdentity *id); /** @@ -99,9 +99,9 @@ RPS_sampler_update (struct RPS_Sampler *sampler, * @param sampler the sampler to reinitialise a sampler in. * @param id the id of the samplers to update. */ - void -RPS_sampler_reinitialise_by_value (struct RPS_Sampler *sampler, - const struct GNUNET_PeerIdentity *id); +void +RPS_sampler_reinitialise_by_value(struct RPS_Sampler *sampler, + const struct GNUNET_PeerIdentity *id); /** @@ -119,10 +119,10 @@ RPS_sampler_reinitialise_by_value (struct RPS_Sampler *sampler, * @param num_peers the number of peers requested */ struct RPS_SamplerRequestHandle * -RPS_sampler_get_n_rand_peers (struct RPS_Sampler *sampler, - uint32_t num_peers, - RPS_sampler_n_rand_peers_ready_cb cb, - void *cls); +RPS_sampler_get_n_rand_peers(struct RPS_Sampler *sampler, + uint32_t num_peers, + RPS_sampler_n_rand_peers_ready_cb cb, + void *cls); /** * Cancle a request issued through #RPS_sampler_n_rand_peers_ready_cb. @@ -130,7 +130,7 @@ RPS_sampler_get_n_rand_peers (struct RPS_Sampler *sampler, * @param req_handle the handle to the request */ void -RPS_sampler_request_cancel (struct RPS_SamplerRequestHandle *req_handle); +RPS_sampler_request_cancel(struct RPS_SamplerRequestHandle *req_handle); /** @@ -141,9 +141,9 @@ RPS_sampler_request_cancel (struct RPS_SamplerRequestHandle *req_handle); * * @return the number of occurrences of id. */ - uint32_t -RPS_sampler_count_id (struct RPS_Sampler *sampler, - const struct GNUNET_PeerIdentity *id); +uint32_t +RPS_sampler_count_id(struct RPS_Sampler *sampler, + const struct GNUNET_PeerIdentity *id); /** @@ -151,8 +151,8 @@ RPS_sampler_count_id (struct RPS_Sampler *sampler, * * @param sampler the sampler to destroy. */ - void -RPS_sampler_destroy (struct RPS_Sampler *sampler); +void +RPS_sampler_destroy(struct RPS_Sampler *sampler); #endif /* end of gnunet-service-rps.c */ -- cgit v1.2.3