diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-04-26 20:25:37 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-04-26 20:25:37 +0200 |
commit | aa78134a557079ce570345e751e4c36c4b2ba79a (patch) | |
tree | f7bf25950513285184e2426109235337d0aef8be /src/cadet | |
parent | 1f2674fe293be7c1a852fbe4a7241fbcb149078f (diff) |
-fix many more typos
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/cadet_api.c | 12 | ||||
-rw-r--r-- | src/cadet/gnunet-cadet-profiler.c | 14 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_channel.c | 2 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 6 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_dht.c | 2 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_paths.c | 4 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_peer.c | 12 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnels.c | 12 | ||||
-rw-r--r-- | src/cadet/test_cadet.c | 6 | ||||
-rw-r--r-- | src/cadet/test_cadet_flow.c | 6 |
10 files changed, 38 insertions, 38 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index 45cc508a6..c9f0722d5 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c @@ -230,7 +230,7 @@ destroy_channel (struct GNUNET_CADET_Channel *ch) /** - * Reconnect to the service, retransmit all infomation to try to restore the + * Reconnect to the service, retransmit all information to try to restore the * original state. * * @param h handle to the cadet @@ -265,8 +265,8 @@ open_port_cb (void *cls, const struct GNUNET_HashCode *id, void *value) /** - * Reconnect callback: tries to reconnect again after a failer previous - * reconnecttion + * Reconnect callback: tries to reconnect again after a failed previous + * connection * * @param cls closure (cadet handle) */ @@ -706,7 +706,7 @@ handle_mq_error (void *cls, enum GNUNET_MQ_Error error) /** - * Reconnect to the service, retransmit all infomation to try to restore the + * Reconnect to the service, retransmit all information to try to restore the * original state. * * @param h handle to the cadet @@ -858,7 +858,7 @@ GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel *channel) * * @param channel Channel handle. * @param option Query (GNUNET_CADET_OPTION_*). - * @param ... dependant on option, currently not used + * @param ... dependent on option, currently not used * * @return Union with an answer to the query. */ @@ -955,7 +955,7 @@ return_agpl (void *cls, const struct GNUNET_MessageHeader *msg) /** - * Open a port to receive incomming MQ-based channels. + * Open a port to receive incoming MQ-based channels. * * @param h CADET handle. * @param port Hash identifying the port. diff --git a/src/cadet/gnunet-cadet-profiler.c b/src/cadet/gnunet-cadet-profiler.c index c3a19a399..e61053f94 100644 --- a/src/cadet/gnunet-cadet-profiler.c +++ b/src/cadet/gnunet-cadet-profiler.c @@ -250,9 +250,9 @@ static struct GNUNET_SCHEDULER_Task *round_task; * START THE TEST ITSELF, AS WE ARE CONNECTED TO THE CADET SERVICES. * * Testcase continues when the root receives confirmation of connected peers, - * on callback funtion ch. + * on callback function ch. * - * @param cls Closure (unsued). + * @param cls Closure (unused). */ static void start_test (void *cls); @@ -290,7 +290,7 @@ get_index (struct CadetPeer *peer) /** - * Show the results of the test (banwidth acheived) and log them to GAUGER + * Show the results of the test (banwidth achieved) and log them to GAUGER */ static void show_end_data (void) @@ -594,7 +594,7 @@ next_rnd (void *cls) * Transmit ping callback. * * @param cls Closure (peer for PING, NULL for PONG). - * @param size Size of the tranmist buffer. + * @param size Size of the transmit buffer. * @param buf Pointer to the beginning of the buffer. * * @return Number of bytes written to buf. @@ -911,9 +911,9 @@ select_random_peer (struct CadetPeer *peer) * START THE TEST ITSELF, AS WE ARE CONNECTED TO THE CADET SERVICES. * * Testcase continues when the root receives confirmation of connected peers, - * on callback funtion ch. + * on callback function ch. * - * @param cls Closure (unsued). + * @param cls Closure (unused). */ static void start_test (void *cls) @@ -993,7 +993,7 @@ warmup (void) * @param op the operation this callback corresponds to * @param pinfo the result; will be NULL if the operation has failed * @param emsg error message if the operation has failed; - * NULL if the operation is successfull + * NULL if the operation is successful */ static void peer_id_cb (void *cls, diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c index ae5d9210f..9a2180cc1 100644 --- a/src/cadet/gnunet-service-cadet_channel.c +++ b/src/cadet/gnunet-service-cadet_channel.c @@ -382,7 +382,7 @@ struct CadetChannel int destroy; /** - * Type of message to be droped. See GCT_send. + * Type of message to be dropped. See GCT_send. */ uint16_t type GNUNET_PACKED; diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index 3e1f779ad..637e8663b 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c @@ -424,7 +424,7 @@ GCC_ack_expected (const struct GNUNET_CADET_ConnectionTunnelIdentifier *cid) cc = GCC_lookup (cid); if (NULL == cc) - return; /* whopise, connection alredy down? */ + return; /* whopise, connection already down? */ cc->metrics.num_acked_transmissions++; } @@ -444,7 +444,7 @@ GCC_ack_observed (const struct GNUNET_CADET_ConnectionTunnelIdentifier *cid) cc = GCC_lookup (cid); if (NULL == cc) - return; /* whopise, connection alredy down? */ + return; /* whopise, connection already down? */ cc->metrics.num_successes++; } @@ -467,7 +467,7 @@ GCC_latency_observed (const struct GNUNET_CADET_ConnectionTunnelIdentifier *cid, cc = GCC_lookup (cid); if (NULL == cc) - return; /* whopise, connection alredy down? */ + return; /* whopise, connection already down? */ GNUNET_STATISTICS_update (stats, "# latencies observed", 1, GNUNET_NO); cc->latency_datapoints++; if (cc->latency_datapoints >= 7) diff --git a/src/cadet/gnunet-service-cadet_dht.c b/src/cadet/gnunet-service-cadet_dht.c index e1bbeb2c3..6caac474d 100644 --- a/src/cadet/gnunet-service-cadet_dht.c +++ b/src/cadet/gnunet-service-cadet_dht.c @@ -102,7 +102,7 @@ static struct GNUNET_TIME_Relative announce_delay; * @param exp when will this value expire * @param key key of the result * @param get_path path of the get request - * @param get_path_length lenght of @a get_path + * @param get_path_length length of @a get_path * @param put_path path of the put request * @param put_path_length length of the @a put_path * @param type type of the result diff --git a/src/cadet/gnunet-service-cadet_paths.c b/src/cadet/gnunet-service-cadet_paths.c index 087515a5e..2da4e2708 100644 --- a/src/cadet/gnunet-service-cadet_paths.c +++ b/src/cadet/gnunet-service-cadet_paths.c @@ -87,7 +87,7 @@ recalculate_path_desirability (struct CadetPeerPath *path) /** * Return how much we like keeping the path. This is an aggregate * score based on various factors, including the age of the path - * (older == better), and the value of this path to all of its ajacent + * (older == better), and the value of this path to all of its adjacent * peers. For example, long paths that end at a peer that we have no * shorter way to reach are very desirable, while long paths that end * at a peer for which we have a shorter way as well are much less @@ -462,7 +462,7 @@ extend_path (struct CadetPeerPath *path, * if applicable. * * @param get_path path of the get request - * @param get_path_length lenght of @a get_path + * @param get_path_length length of @a get_path * @param put_path path of the put request * @param put_path_length length of the @a put_path * @return a path through the network diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c index 221364c5d..2437a3e1b 100644 --- a/src/cadet/gnunet-service-cadet_peer.c +++ b/src/cadet/gnunet-service-cadet_peer.c @@ -304,8 +304,8 @@ GCP_get_desirability_of_path (struct CadetPeer *cp, #endif avg_sum = off_sum * 1.0 / cp->path_dll_length; path_delta = off - avg_sum; - /* path_delta positiv: path off of peer above average (bad path for peer), - path_delta negativ: path off of peer below average (good path for peer) */ + /* path_delta positive: path off of peer above average (bad path for peer), + path_delta negative: path off of peer below average (good path for peer) */ if (path_delta <= -1.0) weight_alts = -num_alts / path_delta; /* discount alternative paths */ else if (path_delta >= 1.0) @@ -405,7 +405,7 @@ consider_peer_activate (struct CadetPeer *cp) (NULL == cp->core_mq) ? "" : " with CORE link"); if (NULL != cp->destroy_task) { - /* It's active, do not destory! */ + /* It's active, do not destroy! */ GNUNET_SCHEDULER_cancel (cp->destroy_task); cp->destroy_task = NULL; } @@ -946,7 +946,7 @@ path_heap_cleanup (void *cls) 2 * DESIRED_CONNECTIONS_PER_TUNNEL) { /* Now we have way too many, drop least desirable UNLESS it is in use! - (Note that this intentionally keeps highly desireable, but currently + (Note that this intentionally keeps highly desirable, but currently unused paths around in the hope that we might be able to switch, even if the number of paths exceeds the threshold.) */ root = GNUNET_CONTAINER_heap_peek (cp->path_heap); @@ -1056,7 +1056,7 @@ GCP_detach_path (struct CadetPeer *cp, struct GNUNET_CONTAINER_HeapNode *hn) { LOG (GNUNET_ERROR_TYPE_DEBUG, - "Detatching path %s from peer %s\n", + "Detaching path %s from peer %s\n", GCPP_2s (path), GCP_2s (cp)); GNUNET_assert (path == @@ -1117,7 +1117,7 @@ GCP_remove_connection (struct CadetPeer *cp, /** - * Retrieve the CadetPeer stucture associated with the + * Retrieve the CadetPeer structure associated with the * peer. Optionally create one and insert it in the appropriate * structures if the peer is not known yet. * diff --git a/src/cadet/gnunet-service-cadet_tunnels.c b/src/cadet/gnunet-service-cadet_tunnels.c index c1c511da1..cabbeed0c 100644 --- a/src/cadet/gnunet-service-cadet_tunnels.c +++ b/src/cadet/gnunet-service-cadet_tunnels.c @@ -238,7 +238,7 @@ struct CadetTunnelAxolotl int ratchet_allowed; /** - * Number of messages recieved since our last ratchet advance. + * Number of messages received since our last ratchet advance. * * If this counter = 0, we cannot send a new ratchet key in the next * message. @@ -1108,7 +1108,7 @@ store_skipped_key (struct CadetTunnelAxolotl *ax, * @param HKr Header key. * @param Np Received meesage number. * @return #GNUNET_OK if keys were stored. - * #GNUNET_SYSERR if an error ocurred (@a Np not expected). + * #GNUNET_SYSERR if an error occurred (@a Np not expected). */ static int store_ax_keys (struct CadetTunnelAxolotl *ax, @@ -3030,7 +3030,7 @@ GCT_send_channel_destroy (struct CadetTunnel *t, struct GNUNET_CADET_ChannelDestroyMessage msg; LOG (GNUNET_ERROR_TYPE_DEBUG, - "Sending DESTORY message for channel ID %u\n", + "Sending DESTROY message for channel ID %u\n", ntohl (ctn.cn)); msg.header.size = htons (sizeof(msg)); msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY); @@ -3105,7 +3105,7 @@ handle_plaintext_channel_destroy (void *cls, /* We don't know about such a channel, might have been destroyed on our end in the meantime, or never existed. */ LOG (GNUNET_ERROR_TYPE_DEBUG, - "Received channel DESTORY for unknown channel %u. Ignoring.\n", + "Received channel DESTROY for unknown channel %u. Ignoring.\n", ntohl (cm->ctn.cn)); return; } @@ -3157,7 +3157,7 @@ decrypted_error_cb (void *cls, /** - * Create a tunnel to @a destionation. Must only be called + * Create a tunnel to @a destination. Must only be called * from within #GCP_get_tunnel(). * * @param destination where to create the tunnel to @@ -3220,7 +3220,7 @@ GCT_create_tunnel (struct CadetPeer *destination) * Add a @a connection to the @a tunnel. * * @param t a tunnel - * @param cid connection identifer to use for the connection + * @param cid connection identifier to use for the connection * @param options options for the connection * @param path path to use for the connection * @return #GNUNET_OK on success, diff --git a/src/cadet/test_cadet.c b/src/cadet/test_cadet.c index 23f2ccbe3..bdf2ac986 100644 --- a/src/cadet/test_cadet.c +++ b/src/cadet/test_cadet.c @@ -224,7 +224,7 @@ static struct GNUNET_CADET_Channel *incoming_ch; /** * Time we started the data transmission (after channel has been established - * and initilized). + * and initialized). */ static struct GNUNET_TIME_Absolute start_time; @@ -292,7 +292,7 @@ get_target_channel () /** - * Show the results of the test (banwidth acheived) and log them to GAUGER + * Show the results of the test (banwidth achieved) and log them to GAUGER */ static void show_end_data (void) @@ -1311,7 +1311,7 @@ start_test (void *cls) * @param op the operation this callback corresponds to * @param pinfo the result; will be NULL if the operation has failed * @param emsg error message if the operation has failed; - * NULL if the operation is successfull + * NULL if the operation is successful */ static void pi_cb (void *cls, diff --git a/src/cadet/test_cadet_flow.c b/src/cadet/test_cadet_flow.c index 2fbdd8d50..9f5a45986 100644 --- a/src/cadet/test_cadet_flow.c +++ b/src/cadet/test_cadet_flow.c @@ -176,7 +176,7 @@ static struct GNUNET_CADET_Channel *incoming_ch; /** * Time we started the data transmission (after channel has been established - * and initilized). + * and initialized). */ static struct GNUNET_TIME_Absolute start_time; @@ -207,7 +207,7 @@ static unsigned int msg_dropped; /** - * Show the results of the test (banwidth acheived) and log them to GAUGER + * Show the results of the test (banwidth achieved) and log them to GAUGER */ static void show_end_data (void) @@ -743,7 +743,7 @@ start_test (void *cls) * @param op the operation this callback corresponds to * @param pinfo the result; will be NULL if the operation has failed * @param emsg error message if the operation has failed; - * NULL if the operation is successfull + * NULL if the operation is successful */ static void pi_cb (void *cls, |