From 0a315e4e5f7d90789babba312079462953114e0d Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Wed, 12 Feb 2020 01:23:35 +1100 Subject: Fix typos in comments --- src/core/aio.c | 2 +- src/supplemental/http/http_server.c | 2 +- src/transport/zerotier/zerotier.c | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/core/aio.c b/src/core/aio.c index a15bb47b..2e38c323 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -43,7 +43,7 @@ static nni_aio *nni_aio_expire_aio; // // The aio framework is tightly bound up with the taskq framework. We // "prepare" the task for an aio when a caller marks an aio as starting -// (with nni_aio_begin), and that marks the task as bus. Then, all we have +// (with nni_aio_begin), and that marks the task as busy. Then, all we have // to do is wait for the task to complete (the busy flag to be cleared) // when we want to know if the operation itself is complete. // diff --git a/src/supplemental/http/http_server.c b/src/supplemental/http/http_server.c index 5eadf6d5..d3b595fd 100644 --- a/src/supplemental/http/http_server.c +++ b/src/supplemental/http/http_server.c @@ -1453,7 +1453,7 @@ http_handle_dir(nni_aio *aio) return; } - // simple worst case is every character in path is a seperator + // simple worst case is every character in path is a separator // It's never actually that bad, because we we have //. pnsz = (strlen(path) + strlen(uri) + 2) * strlen(NNG_PLATFORM_DIR_SEP); pnsz += strlen("index.html") + 1; // +1 for term nul diff --git a/src/transport/zerotier/zerotier.c b/src/transport/zerotier/zerotier.c index 9d166ad2..bebe67a6 100644 --- a/src/transport/zerotier/zerotier.c +++ b/src/transport/zerotier/zerotier.c @@ -31,7 +31,7 @@ // to the Internet to use this. (Or at least to your Planetary root.) // // Because ZeroTier takes a while to establish connectivity, it is even -// more important that applicaitons using the ZeroTier transport not +// more important that applications using the ZeroTier transport not // assume that a connection will be immediately available. It can take // quite a few seconds for peer-to-peer connectivity to be established. // @@ -131,7 +131,7 @@ enum zt_errors { zt_err_refused = 0x01, // Connection refused zt_err_notconn = 0x02, // Connection does not exit zt_err_wrongsp = 0x03, // SP protocol mismatch - zt_err_proto = 0x04, // Other protocol errror + zt_err_proto = 0x04, // Other protocol error zt_err_msgsize = 0x05, // Message to large zt_err_unknown = 0x06, // Other errors }; @@ -263,7 +263,7 @@ struct zt_ep { // honest we don't think anyone will be using the ZeroTier transport in // performance critical applications; scalability may become a factor for // large servers sitting in a ZeroTier hub situation. (Then again, since -// only the zerotier procesing is single threaded, it may not +// only the zerotier processing is single threaded, it may not // be that much of a bottleneck -- really depends on how expensive these // operations are. We can use lockstat or other lock-hotness tools to // check for this later.) @@ -432,7 +432,7 @@ static uint64_t zt_mac_to_node(uint64_t mac, uint64_t nwid) { uint64_t node; - // This extracts a node address from a mac addres. The + // This extracts a node address from a mac address. The // network ID is mixed in, and has to be extricated. We // the node ID is located in the lower 40 bits, and scrambled // against the nwid. -- cgit v1.2.3-70-g09d2