From 1f2674fe293be7c1a852fbe4a7241fbcb149078f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 26 Apr 2021 20:00:55 +0200 Subject: -fix typos --- src/rps/gnunet-service-rps_custommap.h | 4 ++-- src/rps/gnunet-service-rps_sampler.h | 5 ++--- src/rps/rps-sampler_client.h | 4 ++-- src/rps/rps-sampler_common.h | 4 ++-- src/rps/rps-test_util.h | 2 +- src/rps/rps.h | 2 +- 6 files changed, 10 insertions(+), 11 deletions(-) (limited to 'src/rps') diff --git a/src/rps/gnunet-service-rps_custommap.h b/src/rps/gnunet-service-rps_custommap.h index 15591b67a..e7f669c63 100644 --- a/src/rps/gnunet-service-rps_custommap.h +++ b/src/rps/gnunet-service-rps_custommap.h @@ -44,10 +44,10 @@ * * This list is expected to * - be altered in small steps frequently - * - be cleared regularily + * - be cleared regularly * - often being queried whether a peer is contained * - alter indices of peers - * - contain continous indices 0 <= i < len + * - contain continuous indices 0 <= i < len * - not contain duplicate peers */ struct CustomPeerMap; diff --git a/src/rps/gnunet-service-rps_sampler.h b/src/rps/gnunet-service-rps_sampler.h index f3a8c9763..410823bea 100644 --- a/src/rps/gnunet-service-rps_sampler.h +++ b/src/rps/gnunet-service-rps_sampler.h @@ -125,7 +125,7 @@ RPS_sampler_get_n_rand_peers (struct RPS_Sampler *sampler, void *cls); /** - * Cancle a request issued through #RPS_sampler_n_rand_peers_ready_cb. + * Cancel a request issued through #RPS_sampler_n_rand_peers_ready_cb. * * @param req_handle the handle to the request */ @@ -136,9 +136,8 @@ RPS_sampler_request_cancel (struct RPS_SamplerRequestHandle *req_handle); /** * Counts how many Samplers currently hold a given PeerID. * - * @param sampler the sampler to cound ids in. + * @param sampler the sampler to count ids in. * @param id the PeerID to count. - * * @return the number of occurrences of id. */ uint32_t diff --git a/src/rps/rps-sampler_client.h b/src/rps/rps-sampler_client.h index e6b808650..7a674371d 100644 --- a/src/rps/rps-sampler_client.h +++ b/src/rps/rps-sampler_client.h @@ -123,7 +123,7 @@ RPS_sampler_get_n_rand_peers (struct RPS_Sampler *sampler, /** - * Cancle a request issued through #RPS_sampler_n_rand_peers_ready_cb. + * Cancel a request issued through #RPS_sampler_n_rand_peers_ready_cb. * * @param req_handle the handle to the request */ @@ -134,7 +134,7 @@ RPS_sampler_request_cancel (struct RPS_SamplerRequestHandle *req_handle); /** * Counts how many Samplers currently hold a given PeerID. * - * @param sampler the sampler to cound ids in. + * @param sampler the sampler to count ids in. * @param id the PeerID to count. * * @return the number of occurrences of id. diff --git a/src/rps/rps-sampler_common.h b/src/rps/rps-sampler_common.h index 72202dc93..c60d37217 100644 --- a/src/rps/rps-sampler_common.h +++ b/src/rps/rps-sampler_common.h @@ -363,7 +363,7 @@ RPS_sampler_count_id (struct RPS_Sampler *sampler, /** - * Cancle a request issued through #RPS_sampler_n_rand_peers_ready_cb. + * Cancel a request issued through #RPS_sampler_n_rand_peers_ready_cb. * * @param req_handle the handle to the request */ @@ -372,7 +372,7 @@ RPS_sampler_request_cancel (struct RPS_SamplerRequestHandle *req_handle); /** - * Cancle a request issued through #RPS_sampler_n_rand_peers_ready_cb. + * Cancel a request issued through #RPS_sampler_n_rand_peers_ready_cb. * * @param req_handle the handle to the request */ diff --git a/src/rps/rps-test_util.h b/src/rps/rps-test_util.h index 72aa78803..9ff13bdcf 100644 --- a/src/rps/rps-test_util.h +++ b/src/rps/rps-test_util.h @@ -20,7 +20,7 @@ /** * @file rps/rps-test_util.h - * @brief Some utils faciliating the view into the internals for the sampler + * @brief Some utils facilitating the view into the internals for the sampler * needed for evaluation * @author Julius Bünger */ diff --git a/src/rps/rps.h b/src/rps/rps.h index 9d42a6104..202f881c9 100644 --- a/src/rps/rps.h +++ b/src/rps/rps.h @@ -98,7 +98,7 @@ struct GNUNET_RPS_CS_ActMaliciousMessage /** * Type of malicious behaviour. * - * 0 No malicious bahaviour at all + * 0 No malicious behaviour at all * 1 Try to maximise representation * 2 Try to partition the network */ -- cgit v1.2.3