]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make spell-check.sh happy and remove stale spelling exceptions (#2122)
authorAmos Jeffries <yadij@users.noreply.github.com>
Mon, 4 Aug 2025 12:20:02 +0000 (12:20 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 5 Aug 2025 07:08:25 +0000 (07:08 +0000)
This change fixes a few misspellings identified by Codespell v2.4.1 and
removes all no-longer-used spelling exceptions that we could find. Most
of the fixed misspellings were present but ignored in 2020 commit
2f8abb64 because then-current Codespell v1.16.0 did not flag them.

N.B. GitHub Actions ubuntu-24.04 runner still uses Codespell v1.16.0.

71 files changed:
ChangeLog
bootstrap.sh
compat/compat.dox
compat/os/mswindows.h
compat/shm.h
lib/heap.c
lib/rfcnb/rfcnb-priv.h
lib/smblib/usage.txt
scripts/boiler-mgr.pl
scripts/codespell-ignorelist.txt
src/BodyPipe.h
src/ClientInfo.h
src/ConfigParser.h
src/DiskIO/DiskDaemon/DiskdIOStrategy.cc
src/HttpHdrContRange.cc
src/HttpHeaderFieldStat.h
src/Instance.cc
src/StatHist.h
src/acl/Checklist.cc
src/acl/RegexData.cc
src/acl/external/eDirectory_userip/ext_edirectory_userip_acl.cc
src/adaptation/Initiator.h
src/adaptation/ecap/XactionRep.cc
src/adaptation/icap/ModXact.cc
src/adaptation/icap/ModXact.h
src/adaptation/icap/Options.h
src/adaptation/icap/ServiceRep.cc
src/adaptation/notes.dox
src/auth/Scheme.h
src/auth/UserRequest.h
src/auth/basic/LDAP/basic_ldap_auth.cc
src/auth/basic/PAM/basic_pam_auth.cc
src/auth/basic/RADIUS/basic_radius_auth.cc
src/cf.data.pre
src/client_side.cc
src/client_side_reply.cc
src/client_side_request.cc
src/clients/Client.cc
src/clients/FtpGateway.cc
src/comm/ModSelect.cc
src/defines.h
src/dns/rfc1035.cc
src/dns_internal.cc
src/external_acl.cc
src/fs/rock/RockSwapDir.cc
src/ftp/Elements.h
src/http/one/Parser.h
src/http/one/ResponseParser.h
src/icmp/Icmp6.cc
src/icmp/net_db.cc
src/ip/Address.h
src/ip/Intercept.h
src/ipc/ReadWriteLock.h
src/main.cc
src/mem/old_api.cc
src/pconn.cc
src/peer_digest.cc
src/redirect.cc
src/sbuf/Algorithms.h
src/sbuf/SBuf.h
src/security/PeerConnector.h
src/servers/FtpServer.cc
src/ssl/ErrorDetailManager.cc
src/ssl/gadgets.cc
src/ssl/support.cc
src/store/Disks.cc
src/test_cache_digest.cc
src/tests/testACLMaxUserIP.cc
src/tests/testSBuf.cc
src/tunnel.cc
src/wccp2.cc

index 8b1d6c032629cc2e2d955680a77f59e9dfcd0a63..77cc8f87f6e224f6d76bb48388a5894aa2d6e927 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2103,7 +2103,7 @@ Changes to squid-3.3.0.3 (09 Jan 2013):
 Changes to squid-3.3.0.2 (03 Dec 2012):
 
        - Support matching empty header field values using req_header and rep_header
-       - ... and some minor code polish and input vaidations
+       - ... and some minor code polish and input validation
        - ... and all changes from squid 3.2.4
 
 Changes to squid-3.3.0.1 (21 Oct 2012):
index cd15e67da201fc9de0c1b33e8b33825d2a3f606d..d7a2b25e26d21f9ab38ca7631a2dc178b73d2a5e 100755 (executable)
@@ -164,7 +164,7 @@ if test -f SPONSORS.list; then
 fi
 
 # Fixup autoconf recursion using --silent/--quiet option
-# autoconf should inherit this option whe recursing into subdirectories
+# autoconf should inherit this option when recursing into subdirectories
 # but it currently doesn't for some reason.
 if ! grep  "configure_args --quiet" configure >/dev/null; then
 echo "Fixing configure recursion"
index 75abd3d62f8dd2169ead8890a235f7dc0ee6c0af..1e239ccf2485148041e4856524445d5480e62f73 100644 (file)
@@ -66,7 +66,7 @@ used seamlessly across all platforms by the main code.
 \par Wrappers
 Sometimes common and useful library functions are not always as safe as they could be.
 An alternative which wraps the original in extra safety checks is provided under the
-same name with an 'x' pre-pended. Currently these extra protections are added on string
+same name with an 'x' prepended. Currently these extra protections are added on string
 handling and memory allocation.
 
 
index 9770d9bad0672dbc0cbcc45be6b6d347fbe37b57..6e13a48645c2f078fb6249cc0a809fa40e3ba526 100644 (file)
@@ -486,7 +486,7 @@ WSASocket(int a, int t, int p, LPWSAPROTOCOL_INFO i, GROUP g, DWORD f)
 #define open       _open /* Needed in win32lib.c */
 #endif /* #ifdef __cplusplus */
 
-/* provide missing definitions from resoruce.h */
+/* provide missing definitions from resource.h */
 /* NP: sys/resource.h and sys/time.h are apparently order-dependant. */
 #if HAVE_SYS_TIME_H
 #include <sys/time.h>
index c16f6f052e0cb17222258056e0eb0ceab55be4f8..231567ad8e513825d8abcbbeb470d45523077853 100644 (file)
@@ -45,7 +45,7 @@ extern "C" {
 
 #endif /* HAVE_SHM */
 
-/// Determines whether segment names are iterpreted as full file paths.
+/// Determines whether segment names are interpreted as full file paths.
 bool shm_portable_segment_name_is_path();
 
 #endif /* SQUID_COMPAT_SHM_H */
index ba36b35c4ee5dbefe4c6a68bb24ceed714f90114..9f93566740db42c0bc012a3758b3218864579ed8 100644 (file)
@@ -204,7 +204,7 @@ heap_extractmin(heap * hp)
 
 /*
  * Remove the last node in HP.  Frees the heap internal structure and
- * returns the data pointes to by the last node.
+ * returns the data pointed to by the last node.
  */
 heap_t
 heap_extractlast(heap * hp)
index 88a167f5d9e82ba342b9495bb6d7832d93fef6da..2d49884d0561d56fbf618a05d1361470051f3f0d 100644 (file)
@@ -78,7 +78,7 @@ struct redirect_addr {
 
 typedef struct RFCNB_Con {
 
-    int fd;                     /* File descripter for TCP/IP connection */
+    int fd;                     /* File descriptor for TCP/IP connection */
     int errn;                   /* last error                            */
     int timeout;                /* How many milli-secs before IO times out */
     int redirects;              /* How many times we were redirected     */
index 0804e773224d119141ab6c7cde247d7611ce84a7..f91bf6b36c901c4c5801b4a918103bb82adab43e 100644 (file)
@@ -142,7 +142,7 @@ accepty as the second parameter.
 
   }
 
-If we wnat to find out the protocol that was negotiated then we can do the 
+If we want to find out the protocol that was negotiated then we can do the
 following:
 
   protocol = SMB_Get_Protocol_IDX(con);
index b7514e0251235c749a7cd687d6c9e1354d05ff23..2cd0265e2282f5f27c6633e5aeec7bcb91fb91f7 100755 (executable)
@@ -74,7 +74,7 @@ my $reClaimPrefix = qr{
     Portions\s
 }xi;
 
-# We have persmission to move these frequent claims to CONTRIBUTORS.
+# We have permission to move these frequent claims to CONTRIBUTORS.
 my $reClaimsOkToMove = qr{
     Robert.Collins|<robertc\@squid-cache.org>|<rbtcollins\@hotmail.com>|
 
index d01ac6640350348a683c56558060858456314f60..f78ea1162478bb92e33689481b8a698082fd4939 100644 (file)
@@ -1,7 +1,6 @@
-actuall
-agains
-aline
+afile
 alloced
+anfd
 anid
 ans
 aparent
@@ -9,34 +8,36 @@ backword
 backwords
 cachable
 cas
+checkin
 childs
-commend
+clen
+coexistance
 crypted
 dont
+eference
 fo
 followings
-formater
 hight
 hist
 iff
-inactivate
-initate
+implementor
+inout
 nd
-neeed
 nnumber
 normall
 othere
 pasttime
 performes
 pevents
-pointes
 preceed
 querys
 readed
 referer
-retuned
-sence
-sheme
+requestor
+requestors
+rin
+servent
+stylessheet
 tage
 te
 tha
@@ -50,10 +51,6 @@ tthe
 ue
 uint
 upto
-vaid
-valuse
-whan
 whats
 whe
 wil
-wnat
index ec4242b0a36bda7afb002cd016dd5ecc1c32fd3a..e437a84d78022b7a6a611a4f23bc20bb6934979d 100644 (file)
@@ -142,7 +142,7 @@ protected:
     // lower-level interface used by Checkout
     MemBuf &checkOut(); // obtain raw buffer
     void checkIn(Checkout &checkout); // return updated raw buffer
-    void undoCheckOut(Checkout &checkout); // undo checkout efffect
+    void undoCheckOut(Checkout &checkout); // undo checkout effect
 
     void scheduleBodyDataNotification();
     void scheduleBodyEndNotification();
index e6de758fa0687744bfef4c0e6cd92af002349430..e6361300afa45a94b6db535948b36a5512376b7b 100644 (file)
@@ -79,7 +79,7 @@ public:
     bool hasQueue(const CommQuotaQueue*) const;  ///< has a given queue
     unsigned int quotaEnqueue(int fd); ///< client starts waiting in queue; create the queue if necessary
     int quotaPeekFd() const; ///< returns the next fd reservation
-    unsigned int quotaPeekReserv() const; ///< returns the next reserv. to pop
+    unsigned int quotaPeekReserv() const; ///< returns the next reservation to pop
     void quotaDequeue(); ///< pops queue head from queue
     void kickQuotaQueue(); ///< schedule commHandleWriteHelper call
     /// either selects the head descriptor for writing or calls quotaDequeue()
index 4a9f211d7ebb2c60f455dca37850a8c60317293e..eae2ab5b4450944afad7473025a8fa9f3b8ad239 100644 (file)
@@ -227,7 +227,7 @@ protected:
     static bool AllowMacros_;
     static bool ParseQuotedOrToEol_; ///< The next tokens will be handled as quoted or to_eol token
     static bool RecognizeQuotedPair_; ///< The next tokens may contain quoted-pair (\-escaped) characters
-    static bool PreviewMode_; ///< The next token will not popped from cfg files, will just previewd.
+    static bool PreviewMode_; ///< \copydoc PeekAtToken()
     static bool ParseKvPair_; ///<The next token will be handled as kv-pair token
     static enum ParsingStates {atParseKey, atParseValue} KvPairState_; ///< Parsing state while parsing kv-pair tokens
 };
index dcc81107f569fc298caed0a3b6d1e25efb94d7f5..7da85e17c6cbaa39389d92fb119be21aa5be15f8 100644 (file)
@@ -66,7 +66,7 @@ int
 DiskdIOStrategy::load()
 {
     /* Calculate the storedir load relative to magic2 on a scale of 0 .. 1000 */
-    /* the parse function guarantees magic2 is positivie */
+    /* the parse function guarantees magic2 is positive */
     return away * 1000 / magic2;
 }
 
index ba808fa4d69321250f64edb7dbbc30170dd760ea..d964927aa7a6b03a98515d6a7b70ba4ef2425f72 100644 (file)
@@ -88,7 +88,7 @@ httpHdrRangeRespSpecParseInit(HttpHdrRangeSpec * spec, const char *field, int fl
 
     spec->length = size_diff(last_pos + 1, spec->offset);
 
-    /* we managed to parse, check if the result makes sence */
+    /* we managed to parse, check if the result makes sense */
     if (spec->length <= 0) {
         debugs(68, 2, "invalid range (" << spec->offset << " += " <<
                (long int) spec->length << ") in resp-range-spec near: '" << field << "'");
index f7d64f6092988ed762c4e75b3cc197d65f1c1a32..7cce4ee673c32e24f94f21a2288b4a3e4090c550 100644 (file)
@@ -18,8 +18,8 @@ public:
     int aliveCount;     /* created but not destroyed (count) */
     int seenCount;      /* number of fields we've seen */
     int parsCount;      /* number of parsing attempts */
-    int errCount;       /* number of pasring errors */
-    int repCount;       /* number of repetitons */
+    int errCount;       /* number of parsing errors */
+    int repCount;       /* number of repetitions */
 };
 
 #endif /* SQUID_SRC_HTTPHEADERFIELDSTAT_H */
index 3460a95021aeef159ff943c88cb6cb07afd9ba38..e8d7dd52b80885c65fa958f71f14de1db180f299 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <cerrno>
 
-/* To support concurrent PID files, convert local statics into PidFile class */
+/* To support concurrent PID files, convert local static variables into PidFile class */
 
 /// Describes the (last) instance PID file being processed.
 /// This hack shortens reporting code while keeping its messages consistent.
index 2950bf10a971f85ec0003bb798453801ad81b383..2ea5d6a31876f0e3c57406452e2264eb971151d7 100644 (file)
@@ -74,7 +74,7 @@ public:
 
     /** Import values from another histogram
      *
-     * \note: the two histograms MUST have the same capicity, min and max or
+     * \note: the two histograms MUST have the same capacity, min and max or
      *      an exception will be raised
      */
     StatHist &operator += (const StatHist &B);
index c14bb3cdb171ae3f22ee71f558afd7488e28ac4d..8143dd4eaa3f74f2a790d6689baa78a4e59b9760 100644 (file)
@@ -279,7 +279,7 @@ ACLChecklist::fastCheck(const ACLList * const list)
     // may use a mixture of fastCheck(void) and fastCheck(list) calls.
     const auto savedList = swapAcl(list);
 
-    // assume DENY/ALLOW on mis/matches due to action-free accessList
+    // assume DENY/ALLOW on mismatches/matches due to action-free accessList
     // matchAndFinish() takes care of the ALLOW case
     if (accessList)
         matchAndFinish(); // calls markFinished() on success
index 80a5d634b4e9784617d8c3bbd3dfa29a4f168d52..70230653a4609a2ba818c56acf6db94d0ba08526 100644 (file)
@@ -87,7 +87,7 @@ removeUnnecessaryWildcards(char * t)
     if (strncmp(t, "^.*", 3) == 0)
         t += 3;
 
-    /* NOTE: an initial '.' might seem unnessary but is not;
+    /* NOTE: an initial '.' might seem unnecessary but is not;
      * it can be a valid requirement that cannot be optimised
      */
     while (*t == '.'  &&  *(t+1) == '*') {
index 645f23c1d6b71feff994901d1a4d4aeef18304ce..736373806d14af3cffaa9e737b2edd0d1d531e71 100644 (file)
@@ -986,7 +986,7 @@ SearchFilterLDAP(edui_ldap_t *l, char *group)
 /*
  * SearchLDAP() - <edui_ldap_t> <scope> <filter> <attrib>
  *
- * Initate LDAP query, under <scope> levels, filtering matches with <filter> and optionally <attrib>
+ * Initiate LDAP query, under <scope> levels, filtering matches with <filter> and optionally <attrib>
  * <attrib> will generally be networkAddress ...
  *
  */
index 93d832a35182ff871c48e2b6f2b4772cb6af3722..a5cdcd315b650f8c5e8ef6fcc0791055e1aa7100 100644 (file)
@@ -14,7 +14,7 @@
 #include "base/CbcPointer.h"
 
 /*
- * The ICAP Initiator is an ICAP vectoring point that initates ICAP
+ * The ICAP Initiator is an ICAP vectoring point that initiates ICAP
  * transactions. This interface exists to allow ICAP transactions to
  * signal their initiators that they have the answer from the ICAP server
  * or that the ICAP query has aborted and there will be no answer. It
index 5dfd0ebe3e345deeb5ff7e4294ac47b09f9e1e3b..7f0bc3acbe9eb653c4f542c7fac122930a3f0027 100644 (file)
@@ -497,7 +497,7 @@ Adaptation::Ecap::XactionRep::updateHistory(Http::Message *adapted)
 
     // Store received meta headers for adapt::<last_h logformat code use.
     // If we already have stored headers from a previous adaptation transaction
-    // related to the same master transction, they will be replaced.
+    // related to the same master transaction, they will be replaced.
     Adaptation::History::Pointer ah = request->adaptLogHistory();
     if (ah != nullptr) {
         HttpHeader meta(hoReply);
index eb8e75eae4407c27b4955e7c7249ed62a9baf090..7763beb69ff71f35f228409490e52b468a442362 100644 (file)
@@ -404,7 +404,7 @@ bool Adaptation::Icap::ModXact::virginBodyEndReached(const Adaptation::Icap::Vir
 size_t Adaptation::Icap::ModXact::virginContentSize(const Adaptation::Icap::VirginBodyAct &act) const
 {
     Must(act.active());
-    // asbolute start of unprocessed data
+    // absolute start of unprocessed data
     const uint64_t dataStart = act.offset();
     // absolute end of buffered data
     const uint64_t dataEnd = virginConsumed + virgin.body_pipe->buf().contentSize();
@@ -1924,11 +1924,11 @@ uint64_t Adaptation::Icap::VirginBodyAct::offset() const
 Adaptation::Icap::Preview::Preview(): theWritten(0), theAd(0), theState(stDisabled)
 {}
 
-void Adaptation::Icap::Preview::enable(size_t anAd)
+void Adaptation::Icap::Preview::enable(size_t anAdvertisedSize)
 {
-    // TODO: check for anAd not exceeding preview size limit
+    // TODO: check for anAdvertisedSize not exceeding preview size limit
     Must(!enabled());
-    theAd = anAd;
+    theAd = anAdvertisedSize;
     theState = stWriting;
 }
 
index 4f101114816b4b64754bf7e4a5432e98a0de8a92..ba4d73b8e0e5fefcf59ea18dbd20a11d18374111 100644 (file)
@@ -20,9 +20,9 @@
 /*
  * ICAPModXact implements ICAP REQMOD and RESPMOD transaction using
  * ICAPXaction as the base. The ICAPModXact receives a virgin HTTP message
- * from an ICAP vecoring point, (a.k.a., initiator), communicates with the
+ * from an ICAP vectoring point, (a.k.a. initiator), communicates with the
  * ICAP server, and sends the adapted HTTP message headers back.
- * Virgin/adapted HTTP message body is reveived/sent using BodyPipe
+ * Virgin/adapted HTTP message body is received/sent using BodyPipe
  * interface. The initiator (or its associate) is expected to send and/or
  * receive the HTTP body.
  */
@@ -88,7 +88,7 @@ class Preview
 
 public:
     Preview();            // disabled
-    void enable(size_t anAd); // enabled with advertised size
+    void enable(size_t anAdvertisedSize); // enabled with advertised size
     bool enabled() const;
 
     /* other members can be accessed iff enabled() */
index d94b03d91e02d84e8a32830e3e965e15421dc2a9..26c5e0a1fe7a74af46abbbf5e6274c2ee4a20255 100644 (file)
@@ -80,7 +80,7 @@ protected:
         TransferKind kind; // to simplify caller's life
     };
 
-    // varios Transfer-* lists
+    // various Transfer-* lists
     struct Transfers {
         TransferList preview;
         TransferList ignore;
index 2c63aa92540340d339f984ccf7389dd978560d09..5f8b13ca7d1d3575a038138a495d11f06d8ae531 100644 (file)
@@ -173,7 +173,7 @@ void Adaptation::Icap::ServiceRep::putConnection(const Comm::ConnectionPointer &
 void Adaptation::Icap::ServiceRep::noteConnectionUse(const Comm::ConnectionPointer &conn)
 {
     Must(Comm::IsConnOpen(conn));
-    fd_table[conn->fd].noteUse(); // pconn re-use, albeit not via PconnPool API
+    fd_table[conn->fd].noteUse(); // pconn reuse, albeit not via PconnPool API
 }
 
 void Adaptation::Icap::ServiceRep::noteConnectionFailed(const char *comment)
index 74b5a156cb0b941cf6e6006f7d03b65ec4db2649..f8119f4fbf284c742798249e314e5bc26b41db98 100644 (file)
@@ -56,7 +56,7 @@ and is parametrized by the kids (see the allServicesSame member).
 
 If an ICAP service with the routing=1 option in squid.conf returns an ICAP
 X-Next-Services response header during a successful REQMOD or RESPMOD
-transaction, Squid abandones the original adaptation plan and forms a new
+transaction, Squid abandons the original adaptation plan and forms a new
 adaptation chain consisting of services identified in the X-Next-Services
 header value (using a comma-separated list of adaptation service names from
 squid.conf).  The dynamically created chain is destroyed once the new plan is
index 6273b51ce88b43203b125c79e8b892033b7a1a2d..f67d941c5f91ac12ea18a43900a98e2ce59fed8c 100644 (file)
@@ -43,7 +43,7 @@ public:
      * After this all schemes will appear completely unsupported
      * until a call to InitAuthModules().
      * Release the Auth::TheConfig handles instead to disable authentication
-     * without terminiating all support.
+     * without terminating all support.
      */
     static void FreeAll();
 
index 889360da635349eb02c02bc8c61f9661f1c603e0..a74e1d92ef31935f022ff779a80e8e4e94ac9e09 100644 (file)
@@ -116,7 +116,7 @@ public:
 
     /**
      * Check a auth_user pointer for validity.
-     * Does not check passwords, just data sensability. Broken or Unknown auth_types are not valid for use...
+     * Does not check passwords, just data validity. Broken or Unknown auth_types are not valid for use...
      *
      * \retval false    User credentials are missing.
      * \retval false    User credentials use an unknown scheme type.
index 4f3bb18cc4a632f6af1a7ec6d831ba3ca304714c..e22b35a7afa34bc3f1d0684c54e972ce2896c38f 100644 (file)
@@ -338,7 +338,7 @@ validUsername(const char *user)
         return 0;
     while (p[0] && p[1]) {
         if (xisspace(p[0])) {
-            /* More than one consequitive space? */
+            /* More than one consecutive space? */
             if (xisspace(p[1]))
                 return 0;
             /* or odd space type character used? */
index 59af907a7fb62d1d0344ca61f1c8ffff0f97a7fd..fe1b2d14bc45e4a6b366137a91e24431c6b16350 100644 (file)
@@ -107,13 +107,13 @@ extern "C" int password_conversation(int num_msg, PAM_CONV_FUNC_CONST_PARM struc
  * A simple "conversation" function returning the supplied password.
  * Has a bit to much error control, but this is my first PAM application
  * so I'd rather check everything than make any mistakes. The function
- * expects a single converstation message of type PAM_PROMPT_ECHO_OFF.
+ * expects a single conversation message of type PAM_PROMPT_ECHO_OFF.
  */
 int
 password_conversation(int num_msg, PAM_CONV_FUNC_CONST_PARM struct pam_message **msg, struct pam_response **resp, void *appdata_ptr)
 {
     if (num_msg != 1 || msg[0]->msg_style != PAM_PROMPT_ECHO_OFF) {
-        debug("ERROR: Unexpected PAM converstaion '%d/%s'\n", msg[0]->msg_style, msg[0]->msg);
+        debug("ERROR: Unexpected PAM conversation '%d/%s'\n", msg[0]->msg_style, msg[0]->msg);
         return PAM_CONV_ERR;
     }
 #if _SQUID_SOLARIS_
index 340faee37b95e19d8e8a673c58d3feb6a4fba46a..6df7eb84afc89f74d789731fc474229b996ed3c9 100644 (file)
@@ -42,7 +42,7 @@
  *
  * basic_radius_auth-1.0 is based on modules from the Cistron-radiusd-1.5.4.
  *
- * Currently you should only start 1 authentificator at a time because the
+ * Currently you should only start 1 authenticator at a time because the
  * the ID's of the different programs can start to conflict. I'm not sure it
  * would help anyway. I think the RADIUS server is close by and I don't think
  * it will handle requests in parallel anyway (correct me if I'm wrong here)
index 3fca75897c2103387573bd77f7561148e8198f83..c59525662297704dc3f0d147d21b108619a7e9fe 100644 (file)
@@ -798,8 +798,8 @@ IF HAVE_AUTH_MODULE_BASIC
                forced to lower case before user credentials are checked or stored.
 
                Most user databases are case insensitive, allowing the same username to be
-               spelled using both lower and upper case letters. For such databases, any
-               casesenstive setting should work, but forcing usernames to lower case may
+               spelled using both lower and upper case letters. For such databases,
+               either setting should work, but forcing usernames to lower case may
                still make a big difference for Squid internal caches like those used by
                an external ACL with %un logformat code in FORMAT and a user_max_ip ACL.
 
@@ -5288,7 +5288,7 @@ DOC_START
                Place: the filename and path to be written.
 
        daemon  Very similar to stdio. But instead of writing to disk the log
-               line is passed to a daemon helper for asychronous handling instead.
+               line is passed to a daemon helper for asynchronous handling instead.
                Place: varies depending on the daemon.
 
                log_file_daemon Place: the file name and path to be written.
index d8507bd5e992d8c22e4072b9212d8c4e963a56c5..5122cfb6f0e772cab66f0c27b1c1240a57a870ca 100644 (file)
@@ -735,7 +735,7 @@ clientPackRangeHdr(const HttpReplyPointer &rep, const HttpHdrRangeSpec * spec, S
 /** returns expected content length for multi-range replies
  * note: assumes that httpHdrRangeCanonize has already been called
  * warning: assumes that HTTP headers for individual ranges at the
- *          time of the actuall assembly will be exactly the same as
+ *          time of the actual assembly will be exactly the same as
  *          the headers when clientMRangeCLen() is called */
 int64_t
 ClientHttpRequest::mRangeCLen() const
@@ -1081,7 +1081,7 @@ prepareAcceleratedURL(ConnStateData * conn, const Http1::RequestParserPointer &h
 
     /* BUG: Squid cannot deal with '*' URLs (RFC2616 5.1.2) */
 
-    // XXX: re-use proper URL parser for this
+    // XXX: reuse proper URL parser for this
     SBuf url = hp->requestUri(); // use full provided URI if we abort
     do { // use a loop so we can break out of it
         ::Parser::Tokenizer tok(url);
@@ -2090,7 +2090,7 @@ ConnStateData::requestTimeout(const CommTimeoutCbParams &io)
     * Just close the connection to not confuse browsers
     * using persistent connections. Some browsers open
     * a connection and then do not use it until much
-    * later (presumeably because the request triggering
+    * later (presumably because the request triggering
     * the open has already been completed on another
     * connection)
     */
@@ -2324,7 +2324,7 @@ clientNegotiateSSL(int fd, void *data)
 #elif (ALLOW_ALWAYS_SSL_SESSION_DETAIL == 1)
 
             /* When using gcc 3.3.x and OpenSSL 0.9.7x sometimes a compile error can occur here.
-            * This is caused by an unpredicatble gcc behaviour on a cast of the first argument
+            * This is caused by an unpredictable gcc behaviour on a cast of the first argument
             * of PEM_ASN1_write(). For this reason this code section is disabled. To enable it,
             * define ALLOW_ALWAYS_SSL_SESSION_DETAIL=1.
             * Because there are two possible usable cast, if you get an error here, try the other
@@ -2604,7 +2604,7 @@ void ConnStateData::buildSslCertGenerationParams(Ssl::CertificateProperties &cer
                 else if (ca->alg == Ssl::algSetValidBefore)
                     certProperties.setValidBefore = true;
 
-                debugs(33, 5, "Matches certificate adaptation aglorithm: " <<
+                debugs(33, 5, "Matches certificate adaptation algorithm: " <<
                        alg << " param: " << (param ? param : "-"));
             }
         }
@@ -2808,7 +2808,7 @@ ConnStateData::switchToHttps(ClientHttpRequest *http, Ssl::BumpMode bumpServerMo
     // Fix timeout to request_start_timeout
     resetReadTimeout(Config.Timeout.request_start_timeout);
     // Also reset receivedFirstByte_ flag to allow this timeout work in the case we have
-    // a bumbed "connect" request on non transparent port.
+    // a bumped "connect" request on non transparent port.
     receivedFirstByte_ = false;
     // Get more data to peek at Tls
     parsingTlsHandshake = true;
index d73bf3f99f67e5fe32d4b1026a31acc78fe68e6e..9af712660eabba3ea5e011c378d4bcc43e9959f0 100644 (file)
@@ -1035,7 +1035,7 @@ clientReplyContext::checkTransferDone()
 
     /*
      * Handle STORE_OK objects.
-     * objectLen(entry) will be set proprely.
+     * objectLen(entry) will be set properly.
      * RC: Does objectLen(entry) include the Headers?
      * RC: Yes.
      */
index 797de8ee2dfc8bdef22d34213197a1caa64c80d9..6afcec7e25d617f20fc98a3271f76c3218a9090d 100644 (file)
@@ -935,7 +935,7 @@ clientInterpretRequestHeaders(ClientHttpRequest * http)
             /* XXX: This is suboptimal. We should give the stream the range set,
              * and thereby let the top of the stream set the offset when the
              * size becomes known. As it is, we will end up requesting from 0
-             * for evey -X range specification.
+             * for every -X range specification.
              * RBC - this may be somewhat wrong. We should probably set the range
              * iter up at this point.
              */
index 6ad8dead8df1ed65791ad330484f0f4b6760273e..d488b1680167a404fe76f11049b3811794eec6e4 100644 (file)
@@ -446,7 +446,7 @@ Client::getMoreRequestBody(MemBuf &buf)
     return requestBodySource->getMoreData(buf);
 }
 
-// Compares hosts in urls, returns false if different, no sheme, or no host.
+// Compares hosts in urls, returns false if different, no scheme, or no host.
 static bool
 sameUrlHosts(const char *url1, const char *url2)
 {
@@ -983,7 +983,7 @@ Client::noteAdaptationAclCheckDone(Adaptation::ServiceGroupPointer group)
     // TODO: Should we check receivedBodyTooLarge as well?
 
     if (!group) {
-        debugs(11,3, "no adapation needed");
+        debugs(11, 3, "no adaptation needed");
         setFinalReply(virginReply());
         processReplyBody();
         return;
index fa773dcf542b340c273c3f86e50165194fd08a13..b5bbb1def310d854a0959159c10c1576d873857a 100644 (file)
@@ -1216,7 +1216,7 @@ ftpReadWelcome(Ftp::Gateway * ftpState)
 
 /**
  * Translate FTP login failure into HTTP error
- * this is an attmpt to get the 407 message to show up outside Squid.
+ * this is an attempt to get the 407 message to show up outside Squid.
  * its NOT a general failure. But a correct FTP response type.
  */
 void
@@ -1246,7 +1246,7 @@ Ftp::Gateway::loginFailed()
     }
 
     failed(ERR_NONE, ctrl.replycode, err);
-    // any other problems are general falures.
+    // any other problems are general failures.
 
     HttpReply *newrep = err->BuildHttpReply();
     delete err;
index 79e91fc430b78232bae449b4d4ab7739c49a2a00..2b93281c864a74797a0a0980a3292e68dc1e9141 100644 (file)
@@ -529,7 +529,7 @@ Comm::SelectLoopInit(void)
  * I spend the day chasing this core dump that occurs when both the client
  * and the server side of a cache fetch simultaneoulsy abort the
  * connection.  While I haven't really studied the code to figure out how
- * it happens, the snippet below may prevent the cache from exitting:
+ * it happens, the snippet below may prevent the cache from exiting:
  *
  * Call this from where the select loop fails.
  */
index b3681ac22bf00b398846299ab497024f55d5e228..925153a9557d7e4c3206e1aa81976e4836097639 100644 (file)
@@ -66,7 +66,7 @@
 #define EBIT_CLR(flag, bit)     ((void)((flag) &= ~((1L<<(bit)))))
 #define EBIT_TEST(flag, bit)    ((flag) & ((1L<<(bit))))
 
-/* bit opearations on a char[] mask of unlimited length */
+/* bit operations on a char[] mask of unlimited length */
 #define CBIT_BIT(bit)           (1<<((bit)%8))
 #define CBIT_BIN(mask, bit)     (mask)[(bit)>>3]
 #define CBIT_SET(mask, bit)     ((void)(CBIT_BIN(mask, bit) |= CBIT_BIT(bit)))
index 15a7350b430ed1ff41c82d1df964209162281b46..290050880627425663e2468828c81a4bef7d9511 100644 (file)
@@ -177,7 +177,7 @@ rfc1035QuestionPack(char *buf,
  * of the rfc1035_message structure.
  *
  * Updates the buffer offset, which is the same as number of
- * octects unpacked since the header starts at offset 0.
+ * octets unpacked since the header starts at offset 0.
  *
  * Returns 0 (success) or 1 (error)
  */
index b2feeaa3367b39fd8e2e1e7a844f7a804011a8d4..79c851da4624e166ea180132781965f542cc41fc 100644 (file)
@@ -958,7 +958,7 @@ idnsSendQuery(idns_query * q)
     // sockets and server listening sockets) and the reconfigure completing
     // (Runner syncConfig() being run). Transactions which loose this race will
     // produce DNS timeouts (or whatever the caller set) as their queries never
-    // get queued to be re-tried after the DNS socekts are re-opened.
+    // get queued to be re-tried after the DNS sockets are re-opened.
 
     if (DnsSocketA < 0 && DnsSocketB < 0) {
         debugs(78, DBG_IMPORTANT, "WARNING: idnsSendQuery: Can't send query, no DNS socket!");
index 6a2147b9fa578f69e6c864e92a495bec569c7cd2..47e9729c764e3563c26fe5b88842dcec72f0e65c 100644 (file)
@@ -1058,7 +1058,7 @@ ACLExternal::startLookup(ACLFilledChecklist *ch, external_acl_data *acl, bool in
         state->queue = oldstate->queue;
         oldstate->queue = state;
     } else {
-        /* No pending lookup found. Sumbit to helper */
+        /* No pending lookup found. Submit to helper */
 
         MemBuf buf;
         buf.init();
index 3e85598594ba58f09348255a8a217fae3bff6e4d..dcafe4a36c837eb7c10490dba793239c0ef81b7d 100644 (file)
@@ -964,7 +964,7 @@ Rock::SwapDir::full() const
     return freeSlots != nullptr && !freeSlots->size();
 }
 
-// storeSwapOutFileClosed calls this nethod on DISK_NO_SPACE_LEFT,
+// storeSwapOutFileClosed calls this method on DISK_NO_SPACE_LEFT,
 // but it should not happen for us
 void
 Rock::SwapDir::diskFull()
index c2a2f86bb92b0c7c129786e8ee4aae81fa00fe10..b05de6273fe03648ade467ab435d7f09e348f0e1 100644 (file)
@@ -27,7 +27,7 @@ AnyP::ProtocolVersion ProtocolVersion();
 /// Create an internal HttpReply structure to house FTP control response info.
 HttpReply *HttpReplyWrapper(const int ftpStatus, const char *ftpReason, const Http::StatusCode httpStatus, const int64_t clen);
 
-/* FTP Commands used by Squid. ALLCAPS case. Safe for static initializaton. */
+/* FTP Commands used by Squid. ALLCAPS case. Safe for static initialization. */
 const SBuf &cmdAppe();
 const SBuf &cmdAuth();
 const SBuf &cmdCwd();
index 2c11402f423c66cb96bc041629bf74cb32caa698..966cb4f2fcc6d1a3819a8c002dd0584568d641fe 100644 (file)
@@ -32,7 +32,7 @@ enum ParseState {
 /** HTTP/1.x protocol parser
  *
  * Works on a raw character I/O buffer and tokenizes the content into
- * the major CRLF delimited segments of an HTTP/1 procotol message:
+ * the major CRLF delimited segments of an HTTP/1 protocol message:
  *
  * \li first-line (request-line / simple-request / status-line)
  * \li mime-header 0*( header-name ':' SP field-value CRLF)
index 7899f859997bd50c57837866033657468e7e2d59..d869c842c8eae04685b5f1d3a396e68df6f5ce25 100644 (file)
@@ -21,9 +21,9 @@ namespace One {
  * upgrading HTTP/0.9 syntax responses to HTTP/1.1
  *
  * Works on a raw character I/O buffer and tokenizes the content into
- * the major CRLF delimited segments of an HTTP/1 respone message:
+ * the major CRLF delimited segments of an HTTP/1 response message:
  *
- * \li status-line (version SP status SP reash-phrase)
+ * \li status-line (version SP status SP reason-phrase)
  * \li mime-header (set of RFC2616 syntax header fields)
  */
 class ResponseParser : public Http1::Parser
@@ -41,7 +41,7 @@ public:
     Http1::Parser::size_type firstLineSize() const override;
     bool parse(const SBuf &aBuf) override;
 
-    /* respone specific fields, read-only */
+    /* response specific fields, read-only */
     Http::StatusCode messageStatus() const { return statusCode_;}
     SBuf reasonPhrase() const { return reasonPhrase_;}
 
index 93a64472d776087bc7f0914a48b329edfb127058..77e2843267d17b283ba71a42dbc962abc66ad1aa 100644 (file)
@@ -20,7 +20,7 @@
 #include "IcmpPinger.h"
 #include "time/gadgets.h"
 
-// Some system headers are only neeed internally here.
+// Some system headers are only needed internally here.
 // They should not be included via the header.
 
 #if HAVE_NETINET_IP6_H
index 87dd7d5559a21a04d85d047b8e06a9431793e2fe..6828404519dbfbd02cf55686abcad0161d1e24af 100644 (file)
@@ -109,7 +109,7 @@ static STCB netdbExchangeHandleReply;
 
 /* We have to keep a local list of CachePeer names.  The Peers structure
  * gets freed during a reconfigure.  We want this database to
- * remain persisitent, so _net_db_peer->peername points into this
+ * remain persistent, so _net_db_peer->peername points into this
  * linked list */
 static wordlist *peer_names = nullptr;
 
index 6774af3850788f2f7c9d57d371dbad4d0c78238e..07efdae5a7020527c92fb597b10e5e4187801144 100644 (file)
@@ -296,7 +296,7 @@ public:
     void getAddrInfo(struct addrinfo *&ai, int force = AF_UNSPEC) const;
 
     /**
-     *  Equivalent to the sysem call freeaddrinfo() but for Ip::Address allocated data
+     *  Equivalent to the system call freeaddrinfo() but for Ip::Address allocated data
      */
     static void FreeAddr(struct addrinfo *&ai);
 
@@ -327,7 +327,7 @@ public:
      * when moving from converted code to unconverted
      * these functions can be used to convert this object
      * and pull out the data needed by the unconverted code
-     * they are intentionaly hard to use, use getAddrInfo() instead.
+     * they are intentionally hard to use, use getAddrInfo() instead.
      * these functions WILL NOT be in the final public API after transition.
      */
 
index 6750bba89dfcf452804e88348e367a7a17f30c0f..6590cc27ee5fd4e5c95eefe454d1b3a2a0b33ee0 100644 (file)
@@ -24,7 +24,7 @@ class Address;
  \par
  * There is no formal state-machine for transparency and interception
  * instead there is this neutral API which other connection state machines
- * and the comm layer use to co-ordinate their own state for transparency.
+ * and the comm layer use to coordinate their own state for transparency.
  */
 class Intercept
 {
index 09306cb696a7adb6c0a586fea7ac691542ed9eff..b0b015487e43a50cf8df3c28fd91b39833cbac71 100644 (file)
@@ -21,7 +21,7 @@ class ReadWriteLockStats;
 
 /// an atomic readers-writer or shared-exclusive lock suitable for maps/tables
 /// Also supports reading-while-appending mode when readers and writer are
-/// allowed to access the same locked object because the writer promisses
+/// allowed to access the same locked object because the writer promises
 /// to only append new data and all size-related object properties are atomic.
 class ReadWriteLock
 {
index f3177fe61b3323b893ae4d368a2b9a8f2e85e553..e5d9a98ec976a112ebb0929bb03a574ae896e533 100644 (file)
@@ -408,7 +408,7 @@ mainHandleCommandLineOption(const int optId, const char *optValue)
 
     case 'C':
         /** \par C
-         * Unset/disabel global option for catchign signals. opt_catch_signals */
+         * Unset/disable global option for catchign signals. opt_catch_signals */
         opt_catch_signals = 0;
         break;
 
@@ -1001,7 +1001,7 @@ setEffectiveUser(void)
     if (geteuid() == 0) {
         debugs(0, DBG_CRITICAL, "Squid is not safe to run as root!  If you must");
         debugs(0, DBG_CRITICAL, "start Squid as root, then you must configure");
-        debugs(0, DBG_CRITICAL, "it to run as a non-priveledged user with the");
+        debugs(0, DBG_CRITICAL, "it to run as a non-privileged user with the");
         debugs(0, DBG_CRITICAL, "'cache_effective_user' option in the config file.");
         fatal("Don't run Squid as root, set 'cache_effective_user'!");
     }
index ac78ebdf7ce1220e05d7dd4616cc9586af6b9959..7ab4eca755b8b6787c0db30b19a405082ae3c9f6 100644 (file)
@@ -262,7 +262,7 @@ memConfigure(void)
         new_pool_limit = Config.MemPools.limit;
     else {
         if (Config.MemPools.limit == 0)
-            debugs(13, DBG_IMPORTANT, "memory_pools_limit 0 has been chagned to memory_pools_limit none. Please update your config");
+            debugs(13, DBG_IMPORTANT, "memory_pools_limit 0 has been changed to memory_pools_limit none. Please update your config");
         new_pool_limit = -1;
     }
 
index c3fe62d84d517b910a2880ca84f017f1356c8c03..813e788f40e7bd7bc678602bb224905fb99658f1 100644 (file)
@@ -223,7 +223,7 @@ IdleConnList::pop()
             continue;
 
         // our connection timeout handler is scheduled to run already. unsafe for now.
-        // TODO: cancel the pending timeout callback and allow re-use of the conn.
+        // TODO: cancel the pending timeout callback and allow reuse of the conn.
         if (fd_table[theList_[i]->fd].timeoutHandler == nullptr)
             continue;
 
@@ -275,7 +275,7 @@ IdleConnList::findUseable(const Comm::ConnectionPointer &aKey)
             continue;
 
         // our connection timeout handler is scheduled to run already. unsafe for now.
-        // TODO: cancel the pending timeout callback and allow re-use of the conn.
+        // TODO: cancel the pending timeout callback and allow reuse of the conn.
         if (fd_table[theList_[i]->fd].timeoutHandler == nullptr)
             continue;
 
index f1c71283b7464b91adaf785a6d0b226143ff1d49..3139ceebf71f7de28b0d392968308df6e37ac72d 100644 (file)
@@ -682,7 +682,7 @@ PeerDigest::noteFetchFinished(const DigestFetchState &finishedFetch, const char
         /* XXX: ugly condition, but how? */
 
         if (fetch->entry->store_status == STORE_OK)
-            debugs(72, 2, "re-used old digest from " << host);
+            debugs(72, 2, "reused old digest from " << host);
         else
             debugs(72, 2, "received valid digest from " << host);
     }
index 3ed07c1a75cc976e0183bc0c8e33ed94c9d3af7f..54ba83c854fc973c4050186d28ccff44b9325bba 100644 (file)
@@ -100,7 +100,7 @@ redirectHandleReply(void *data, const Helper::Reply &reply)
             size_t replySize = 0;
             if (const char *t = strchr(res, ' ')) {
                 static int warn = 0;
-                debugs(61, (!(warn++%50)? DBG_CRITICAL:2), "WARNING: UPGRADE: URL rewriter reponded with garbage '" << t <<
+                debugs(61, (!(warn++%50)? DBG_CRITICAL:2), "WARNING: UPGRADE: URL rewriter responded with garbage '" << t <<
                        "'. Future Squid will treat this as part of the URL.");
                 replySize = t - res;
             } else
index bd9d2527fc50fcfdd28f7e34d607b0ce573dee36..351b4ea87fa2d80b1e276841ba8b181ec3728a3c 100644 (file)
@@ -38,7 +38,7 @@ private:
     SBufCaseSensitive sensitivity_;
 };
 
-/** SBuf size addition accumulator for STL contaniners
+/** SBuf size addition accumulator for STL containers
  *
  * Equivalent to prefix_length +  SBuf.length() +  separator.length()
  */
index f0f1d978740ee3b2a13f588d9c95420e9c1b3975..414a3b93f9ba7a6d16f57528bb609e69c9ccd5f0 100644 (file)
@@ -491,7 +491,7 @@ public:
     /** Extract a part of the current SBuf.
      *
      * Return a fresh a fresh copy of a portion the current SBuf, which is
-     * left untouched. The same parameter convetions apply as for chop.
+     * left untouched. The same parameter conventions apply as for chop.
      * \see trim, chop
      */
     SBuf substr(size_type pos, size_type n = npos) const;
index 6debffdb323a7bbaec1245ffda2dfcdcc23fe227..68cd81cc01967999f46ac542fb8339073e45c4fb 100644 (file)
@@ -92,7 +92,7 @@ protected:
     /// Called after each negotiation step to handle the result
     void handleNegotiationResult(const Security::IoResult &);
 
-    /// Called when the openSSL SSL_connect fnction request more data from
+    /// Called when the openSSL SSL_connect function request more data from
     /// the remote SSL server. Sets the read timeout and sets the
     /// Squid COMM_SELECT_READ handler.
     void noteWantRead();
index 6252476a054fd9478f311c2191956ce0d4103456..4d3f8cecbbdb0c144d39df5f6fa4894c051d9a1e 100644 (file)
@@ -1188,7 +1188,7 @@ Ftp::Server::writeForwardedReplyAndCall(const HttpReply *reply, AsyncCall::Point
                 // TODO: Add connect timeout for passive connections listener?
                 // TODO: Remember server response so that we can forward it?
             } else {
-                // Either the connection was establised and closed after the
+                // Either the connection was established and closed after the
                 // data was transferred OR we failed to establish an active
                 // data connection and already sent the error to the client.
                 // In either case, there is nothing more to do.
@@ -1467,7 +1467,7 @@ Ftp::Server::createDataConnection(Ip::Address cltAddr)
         // server IP the client is connecting to, it can be spoofed by Squid.
         //
         // In both cases some clients may refuse to accept data connections if
-        // these control connectin local-IP's are not used.
+        // these control connection local-IP's are not used.
         conn->setAddrs(clientConnection->local, cltAddr);
 
         // Using non-local addresses in TPROXY mode requires appropriate socket option.
index 309cae8aefa587d0f96c62846df2bc6db4e64a1a..8eff733be0565ba64d7142d8ffaf659ebd088fd7 100644 (file)
@@ -125,7 +125,7 @@ Ssl::ErrorDetailsManager::findDetail(const Security::ErrorCode value, const Http
         //Try to retrieve from cache
         size_t pos = 0;
         char lang[256];
-        // Get the first ellement of the Accept-Language header
+        // Get the first element of the Accept-Language header
         strHdrAcptLangGetItem(hdr, lang, 256, pos);
         errDetails = getCachedDetails(lang); // search in cache
 
index 09bad6ddd15e66ef11b72338bf90eccac10527a0..a8406df39c85d4173bdc04ef8534b0d7728fa5d8 100644 (file)
@@ -330,8 +330,8 @@ mimicAuthorityKeyId(Security::CertPointer &cert, Security::CertPointer const &mi
     if (addKeyId) {
         X509_EXTENSION *ext;
         // Check if the issuer has the Subject Key Identifier extension
-        const int indx = X509_get_ext_by_NID(issuerCert.get(), NID_subject_key_identifier, -1);
-        if (indx >= 0 && (ext = X509_get_ext(issuerCert.get(), indx))) {
+        const int index = X509_get_ext_by_NID(issuerCert.get(), NID_subject_key_identifier, -1);
+        if (index >= 0 && (ext = X509_get_ext(issuerCert.get(), index))) {
             issuerKeyId.reset((ASN1_OCTET_STRING *)X509V3_EXT_d2i(ext));
         }
     }
@@ -525,7 +525,7 @@ Ssl::ParseCommonNameAt(X509_NAME &name, const int cnIndex)
     return std::nullopt;
 }
 
-/// Adds a new subjectAltName extension contining Subject CN or returns false
+/// Adds a new subjectAltName extension containing Subject CN or returns false
 /// expects the caller to check for the existing subjectAltName extension
 static bool
 addAltNameWithSubjectCn(Security::CertPointer &cert)
index f4a504cbafbd2ad9233d12fd046162d943587d6f..3105e49c0d3d69c357221fb2eccaed5f11eb8d22 100644 (file)
@@ -809,7 +809,7 @@ Ssl::InitClientContext(Security::ContextPointer &ctx, Security::PeerOptions &pee
         return false;
 
     if (!peer.sslCipher.isEmpty()) {
-        debugs(83, 5, "Using chiper suite " << peer.sslCipher << ".");
+        debugs(83, 5, "Using cipher suite " << peer.sslCipher << ".");
 
         const char *cipher = peer.sslCipher.c_str();
         if (!SSL_CTX_set_cipher_list(ctx.get(), cipher)) {
index 2ea1b5f2428198d2148afc69611553945bd9310d..6b39e3d26d8b7060c7bcc7bae14895fad71ba2e0 100644 (file)
@@ -725,7 +725,7 @@ storeDirWriteCleanLogs(int reopen)
 
     /*
      * This may look inefficient as CPU wise it is more efficient to do this
-     * sequentially, but I/O wise the parallellism helps as it allows more
+     * sequentially, but I/O wise the parallelism helps as it allows more
      * hdd spindles to be active.
      */
     while (notdone) {
index d5fd1c3dca49dbd6b9c481264366044c4b2e08d5..bc1ad9c2dbf819c8f3091f46f8866f853d03ee1a 100644 (file)
@@ -55,7 +55,7 @@ typedef struct {
 } RawAccessLogEntry;
 
 typedef enum {
-    frError = -2, frMore = -1, frEof = 0, frOk = 1
+    frError = -2, frMore = -1, frEof = 0, frSuccess = 1
 } fr_result;
 
 typedef struct _FileIterator FileIterator;
@@ -369,7 +369,7 @@ swapStateReader(FileIterator * fi)
         exit(-3);
     }
 
-    return frOk;
+    return frSuccess;
 }
 
 static fr_result
@@ -455,7 +455,7 @@ accessLogReader(FileIterator * fi)
 
     /*fprintf(stdout, "%s:%d: %s %s %s %s\n",
      * fname, count, method, storeKeyText(entry->key), url, hier); */
-    return frOk;
+    return frSuccess;
 }
 
 static void
index f390056532317f28857044835ec1a9ba0c3d6c89..3cdbe811ec6f5af52d4daa6ee68dc13f56762010 100644 (file)
@@ -86,7 +86,7 @@ TestACLMaxUserIP::testParseLine()
         /* we want a maximum of one, and strict to be true */
         CPPUNIT_ASSERT_EQUAL(1, maxUserIpACL->getMaximum());
         CPPUNIT_ASSERT_EQUAL(true, static_cast<bool>(maxUserIpACL->beStrict));
-        /* the acl must be vaid */
+        /* the acl must be valid */
         CPPUNIT_ASSERT_EQUAL(true, maxUserIpACL->valid());
     }
     Acl::FreeNamedAcls(&Config.namedAcls);
index 7076cdc1cd4e4c5a7d5a3ae54af30627dd09b03b..b95c50ad755b2fa6087dc2f7c199e102bb204e70 100644 (file)
@@ -426,7 +426,7 @@ TestSBuf::testComparisons()
     CPPUNIT_ASSERT(s1 < s2);
     // specifying the max-length and overhanging size
     CPPUNIT_ASSERT_EQUAL(1,SBuf("foolong").caseCmp(SBuf("foo"), 5));
-    // case-insensive comaprison
+    // case-insensive comparison
     s1 = "foo";
     s2 = "fOo";
     CPPUNIT_ASSERT_EQUAL(0,s1.caseCmp(s2));
@@ -920,7 +920,7 @@ TestSBuf::testReserve()
         for (SBuf::size_type filled = 0; filled < requirements.maxCapacity +5; ++filled) {
             CPPUNIT_ASSERT_EQUAL(b.length(), min(filled, requirements.maxCapacity));
             auto x = b.reserve(requirements);
-            // the amount of space advertized must not cause users to exceed capacity
+            // the amount of space advertised must not cause users to exceed capacity
             CPPUNIT_ASSERT(x <= requirements.maxCapacity - filled);
             CPPUNIT_ASSERT(b.spaceSize() <= requirements.maxCapacity - filled);
             // the total size of buffer must not cause users to exceed capacity
index b2c8932ad3b1e1e94d4dfd238d6b715e3dab0bf0..15029c4c66f4b06b674092076ffa2f88da953929 100644 (file)
@@ -851,7 +851,7 @@ tunnelTimeout(const CommTimeoutCbParams &io)
 {
     TunnelStateData *tunnelState = static_cast<TunnelStateData *>(io.data);
     debugs(26, 3, io.conn);
-    /* Temporary lock to protect our own feets (comm_close -> tunnelClientClosed -> Free) */
+    /* Temporary lock to protect our own feet (comm_close -> tunnelClientClosed -> Free) */
     CbcPointer<TunnelStateData> safetyLock(tunnelState);
 
     tunnelState->closeConnections();
@@ -1097,7 +1097,7 @@ tunnelErrorComplete(int fd/*const Comm::ConnectionPointer &*/, void *data, size_
     TunnelStateData *tunnelState = (TunnelStateData *)data;
     debugs(26, 3, "FD " << fd);
     assert(tunnelState != nullptr);
-    /* temporary lock to save our own feets (comm_close -> tunnelClientClosed -> Free) */
+    /* temporary lock to save our own feet (comm_close -> tunnelClientClosed -> Free) */
     CbcPointer<TunnelStateData> safetyLock(tunnelState);
 
     if (Comm::IsConnOpen(tunnelState->client.conn))
index 92e10efd587f1c15ca8ff217d4e4dbc82b64e170..37dbf57d321222bafbb97062d8bc6d89ec74120e 100644 (file)
@@ -50,7 +50,7 @@ static EVH wccp2AssignBuckets;
 #define WCCP2_NUMPORTS  8
 #define WCCP2_PASSWORD_LEN  8 + 1 /* + 1 for C-string NUL terminator */
 
-/* WCCPv2 Pakcet format structures */
+/* WCCPv2 Packet format structures */
 /* Defined in draft-wilson-wccp-v2-12-oct-2001.txt */
 
 /** \interface WCCPv2_Protocol