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_elem.h | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'src/rps/gnunet-service-rps_sampler_elem.h') diff --git a/src/rps/gnunet-service-rps_sampler_elem.h b/src/rps/gnunet-service-rps_sampler_elem.h index 3f33a6816..c22b7413c 100644 --- a/src/rps/gnunet-service-rps_sampler_elem.h +++ b/src/rps/gnunet-service-rps_sampler_elem.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_elem.h @@ -30,15 +30,14 @@ /*********************************************************************** - * WARNING: This section needs to be reviewed regarding the use of - * functions providing (pseudo)randomness! - ***********************************************************************/ +* WARNING: This section needs to be reviewed regarding the use of +* functions providing (pseudo)randomness! +***********************************************************************/ /** * Used to indicate whether a sampler element is empty. */ -enum RPS_SamplerEmpty -{ +enum RPS_SamplerEmpty { NOT_EMPTY = 0x0, EMPTY = 0x1 }; @@ -46,8 +45,7 @@ enum RPS_SamplerEmpty /** * A sampler element sampling one PeerID at a time. */ -struct RPS_SamplerElement -{ +struct RPS_SamplerElement { /** * Min-wise linear permutation used by this sampler. * @@ -104,7 +102,7 @@ struct RPS_SamplerElement * @param sampler_el The sampler element to (re-) initialise */ void -RPS_sampler_elem_reinit (struct RPS_SamplerElement *sampler_elem); +RPS_sampler_elem_reinit(struct RPS_SamplerElement *sampler_elem); /** @@ -116,7 +114,7 @@ RPS_sampler_elem_reinit (struct RPS_SamplerElement *sampler_elem); * @return a newly created RPS_SamplerElement which currently holds no id. */ struct RPS_SamplerElement * -RPS_sampler_elem_create (void); +RPS_sampler_elem_create(void); /** @@ -125,7 +123,7 @@ RPS_sampler_elem_create (void); * @param sampler_elem the element to destroy */ void -RPS_sampler_elem_destroy (struct RPS_SamplerElement *sampler_elem); +RPS_sampler_elem_destroy(struct RPS_SamplerElement *sampler_elem); /** @@ -135,8 +133,8 @@ RPS_sampler_elem_destroy (struct RPS_SamplerElement *sampler_elem); * @param new_ID The PeerID to update with */ void -RPS_sampler_elem_next (struct RPS_SamplerElement *sampler_elem, - const struct GNUNET_PeerIdentity *new_ID); +RPS_sampler_elem_next(struct RPS_SamplerElement *sampler_elem, + const struct GNUNET_PeerIdentity *new_ID); /** * Set the min-wise independent function of the given sampler element. @@ -145,8 +143,8 @@ RPS_sampler_elem_next (struct RPS_SamplerElement *sampler_elem, * @param auth_key the key to use */ void -RPS_sampler_elem_set (struct RPS_SamplerElement *sampler_elem, - struct GNUNET_CRYPTO_AuthKey auth_key); +RPS_sampler_elem_set(struct RPS_SamplerElement *sampler_elem, + struct GNUNET_CRYPTO_AuthKey auth_key); #endif /* RPS_SAMPLER_ELEM_H */ -- cgit v1.2.3