]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 5021: Spelling errors fixed by running scripts/spell-check.sh (#578)
authormrumph <mrumph68@gmail.com>
Sat, 28 Mar 2020 23:44:59 +0000 (23:44 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 29 Mar 2020 18:17:09 +0000 (18:17 +0000)
216 files changed:
INSTALL
compat/GnuRegex.c
compat/compat.h
compat/getaddrinfo.cc
compat/getaddrinfo.h
compat/getnameinfo.cc
compat/inet_ntop.cc
compat/inet_pton.cc
compat/os/linux.h
compat/os/opensolaris_10_netdb.h
compat/strnstr.cc
doc/HTTP-codes.txt
errors/templates/error-details.txt
include/base64.h
lib/heap.c
lib/libTrie/TrieNode.cc
lib/ntlmauth/ntlmauth.cc
lib/ntlmauth/ntlmauth.h
lib/profiler/Profiler.cc
lib/radix.c
lib/rfcnb/rfcnb-util.c
lib/smblib/file.c
lib/smblib/smblib-api.c
lib/smblib/smblib-priv.h
lib/smblib/smblib-util.c
lib/snmplib/CMU-SNMP-ReleaseNotes.txt
lib/snmplib/asn1.c
lib/tests/testRFC1738.cc
scripts/boiler-mgr.pl
scripts/check_cache.pl
scripts/codespell-whitelist.txt
scripts/find-alive.pl
scripts/formater.pl
scripts/icpserver.pl
scripts/mk-error-details-po.pl
scripts/sort-includes.pl
scripts/source-maintenance.sh
scripts/www/build-cfg-help.pl
src/AsyncEngine.h
src/ClientInfo.h
src/CompletionDispatcher.h
src/ConfigParser.h
src/DiskIO/IpcIo/IpcIoFile.cc
src/EventLoop.h
src/FadingCounter.h
src/HttpHdrRange.cc
src/HttpHdrSc.cc
src/HttpHeader.cc
src/HttpHeaderRange.h
src/HttpHeaderTools.cc
src/HttpReply.cc
src/HttpReply.h
src/HttpRequest.cc
src/MemBuf.cc
src/Notes.h
src/RequestFlags.h
src/SquidConfig.h
src/SquidTime.h
src/StatHist.h
src/Store.h
src/StoreSwapLogData.h
src/StrList.cc
src/WinSvc.cc
src/acl/Acl.h
src/acl/AllOf.h
src/acl/Arp.cc
src/acl/BoolOps.h
src/acl/Gadgets.cc
src/acl/Gadgets.h
src/acl/InnerNode.cc
src/acl/Ip.cc
src/acl/external/LM_group/ext_lm_group_acl.cc
src/acl/external/eDirectory_userip/ext_edirectory_userip_acl.cc
src/acl/external/file_userip/ext_file_userip_acl.cc
src/acl/external/kerberos_sid_group/ext_kerberos_sid_group_acl.pl.in
src/acl/external/session/ext_session_acl.cc
src/acl/external/time_quota/ext_time_quota_acl.cc
src/adaptation/Iterator.cc
src/adaptation/ServiceConfig.cc
src/adaptation/ecap/XactionRep.cc
src/adaptation/icap/Launcher.cc
src/anyp/TrafficMode.h
src/anyp/Uri.cc
src/auth/SchemeConfig.h
src/auth/User.cc
src/auth/UserRequest.cc
src/auth/UserRequest.h
src/auth/basic/RADIUS/radius-util.cc
src/auth/basic/SSPI/valid.cc
src/auth/basic/getpwnam/basic_getpwnam_auth.cc
src/auth/digest/Config.cc
src/auth/digest/LDAP/ldap_backend.cc
src/auth/digest/eDirectory/ldap_backend.cc
src/auth/ntlm/SMB_LM/ntlm_smb_lm_auth.cc
src/auth/ntlm/SSPI/ntlm_sspi_auth.cc
src/auth/ntlm/UserRequest.cc
src/base/AsyncCall.h
src/base/AsyncJob.cc
src/base/CharacterSet.h
src/base/Subscription.h
src/cache_cf.cc
src/cbdata.h
src/cf.data.pre
src/clientStream.cc
src/clientStream.h
src/client_side.cc
src/client_side.h
src/client_side_reply.cc
src/client_side_request.cc
src/clients/Client.cc
src/clients/FtpClient.cc
src/clients/FtpGateway.cc
src/clients/HttpTunnelerAnswer.h
src/comm.cc
src/comm/AcceptLimiter.h
src/comm/ConnOpener.cc
src/comm/Connection.h
src/comm/IoCallback.h
src/comm/ModPoll.cc
src/comm/ModSelect.cc
src/comm/ModSelectWin32.cc
src/dns/rfc1035.cc
src/dns/rfc3596.cc
src/dns_internal.cc
src/err_type.h
src/esi/Context.h
src/esi/Esi.cc
src/esi/Expression.cc
src/esi/Sequence.cc
src/esi/VarState.cc
src/eui/Eui48.cc
src/external_acl.cc
src/format/ByteCode.h
src/format/Config.h
src/format/Format.cc
src/format/Format.h
src/fqdncache.cc
src/fs/rock/RockIoState.cc
src/fs/rock/RockSwapDir.cc
src/fs/ufs/UFSStoreState.cc
src/fs/ufs/UFSSwapDir.cc
src/fs_io.h
src/helper.cc
src/helper/ChildConfig.h
src/helper/Reply.cc
src/htcp.cc
src/http.cc
src/http/Stream.cc
src/http/one/Parser.cc
src/icmp/Icmp4.h
src/icmp/Icmp6.cc
src/icmp/Icmp6.h
src/icmp/net_db.cc
src/icmp/pinger.cc
src/ident/Ident.h
src/ip/Address.cc
src/ip/Address.h
src/ip/Intercept.h
src/ip/QosConfig.cc
src/ipc.cc
src/ipc/SharedListen.cc
src/ipc/StoreMap.cc
src/ipcache.cc
src/log/DB/doc/views.sql
src/log/DB/log_db_daemon.pl.in
src/log/TcpLogger.cc
src/log/file/log_file_daemon.cc
src/mem/Pool.h
src/mem/PoolChunked.cc
src/mgr/BasicActions.h
src/mib.txt
src/neighbors.cc
src/redirect.cc
src/refresh.cc
src/sbuf/SBuf.cc
src/sbuf/SBuf.h
src/security/EncryptorAnswer.h
src/security/LockingPointer.h
src/security/PeerConnector.cc
src/security/PeerConnector.h
src/security/ServerOptions.cc
src/security/cert_generators/file/certificate_db.cc
src/servers/FtpServer.cc
src/servers/FtpServer.h
src/snmp_core.cc
src/ssl/ErrorDetail.cc
src/ssl/ErrorDetail.h
src/ssl/ErrorDetailManager.cc
src/ssl/bio.h
src/ssl/cert_validate_message.h
src/ssl/crtd_message.cc
src/ssl/crtd_message.h
src/ssl/gadgets.cc
src/ssl/gadgets.h
src/ssl/support.cc
src/ssl/support.h
src/stmem.cc
src/stmem.h
src/store.cc
src/store/Controller.cc
src/store/Disks.cc
src/store_client.cc
src/tests/SBufFindTest.cc
src/tests/testEventLoop.cc
src/tests/testHttpRequest.cc
src/tests/testSBuf.cc
src/tools.cc
src/tools.h
src/wccp2.cc
test-suite/buildtest.sh
test-suite/testheaders.sh
tools/cachemgr.cc
tools/purge/purge.cc
tools/purge/socket.cc
tools/squidclient/Ping.h
tools/squidclient/Transport.h

diff --git a/INSTALL b/INSTALL
index bebb145273b3c20a83ac541405aeaa9012148e42..eb5c07920a60fef955125ec53896302003a08f5c 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -17,7 +17,7 @@ To run a Cache, you will need to:
        1. customize the squid.conf configuration file:
              % vi /usr/local/squid/etc/squid.conf
 
-       2. Initalise the cache:
+       2. Initialise the cache:
              % /usr/local/squid/sbin/squid -z
              
        3. start the cache:
index 9c6a5d830da235de0f434f2c293cf347b1cb5c7b..55e5178ebb2303de2c90332fec2a2a7a41277d0b 100644 (file)
@@ -956,7 +956,7 @@ regex_compile(const char *pattern, int size, reg_syntax_t syntax, struct re_patt
      * they can be reliably used as array indices.  */
     register unsigned char c, c1;
 
-    /* A random tempory spot in PATTERN.  */
+    /* A random temporary spot in PATTERN.  */
     const char *p1;
 
     /* Points to the end of the buffer, where we should append.  */
index ec72e60a9dece31cce9392af2c32bdaae28985c3..5d765a6fcfba87196f3b34b7d1f2cf3db1e2940a 100644 (file)
@@ -12,7 +12,7 @@
 /*
  * From discussions it was chosen to push compat code as far down as possible.
  * That means we can have a separate compat for most
- *  compatability and portability hacks and resolutions.
+ *  compatibility and portability hacks and resolutions.
  *
  * This file is meant to collate all those hacks files together and
  * provide a simple include for them in the core squid headers
index 9057bf3b338bb6c7401c64d219f5a4a9d6141c3c..19b1ff50421d3e2d03a9846d31f8d10e93d6d41b 100644 (file)
@@ -13,7 +13,7 @@
  * Update/Maintenance History:
  *
  *    15-Aug-2007 : Copied from fetchmail 6.3.8
- *          - added protection around libray headers
+ *          - added protection around library headers
  *
  *    16-Aug-2007 : Altered configure checks
  *                  Un-hacked slightly to use system gethostbyname()
index 688c0b5458f30ffef6adf01e45962bca3bb2389d..c5bc716419be835f81a203eee0b106e7877e8273 100644 (file)
@@ -16,7 +16,7 @@
  * Update/Maintenance History:
  *
  *    15-Aug-2007 : Copied from fetchmail 6.3.8
- *          - added protection around libray headers
+ *          - added protection around library headers
  *
  *    16-Aug-2007 : Altered configure checks
  *                  Un-hacked slightly to use system gethostbyname()
index c2dea9b5620781df77aa80c202fb6028ddb6cd5c..f7a88a0626e982c4bfab2c75aafd26c776d1297c 100644 (file)
@@ -13,7 +13,7 @@
  * Update/Maintenance History:
  *
  *    16-Aug-2007 : Copied from fetchmail 6.3.8
- *                      - added protection around libray headers
+ *                      - added protection around library headers
  *                      - added use of alternative name xgetnameinfo
  *                        to split from any OS-provided.
  *
index d00ae96fb64e63e237de232105f0abc73ead581c..26e593075beda3600c7e3e24250bdec6d527164d 100644 (file)
@@ -14,7 +14,7 @@
  * Update/Maintenance History:
  *
  *    24-Sep-2007 : Copied from bind 9.3.3
- *          - Added protection around libray headers
+ *          - Added protection around library headers
  *          - Altered configure checks
  *          - Un-hacked slightly to use system gethostbyname()
  *
index eb20912614622e24794a498eabca52f8fcc7e435..f6a98f0bdcf91abc00c3c5b770d1b0a42b444c41 100644 (file)
@@ -14,7 +14,7 @@
  * Update/Maintenance History:
  *
  *    24-Sep-2007 : Copied from bind 9.3.3
- *                      - Added protection around libray headers
+ *                      - Added protection around library headers
  *                      - Altered configure checks to import
  *
  *    06-Oct-2007 : Various fixes to allow the build on MinGW
index 0ff05c60d7b38e4a3b7aab62a2eaf7fdb8753f9c..42bb7ea2c103a0d225b725330e91908b9f247a69 100644 (file)
@@ -34,7 +34,7 @@
  *
  * Netfilter have a history of defining their own versions of network protocol
  * primitives without sufficient protection against the POSIX defines which are
- * aways present in Linux.
+ * always present in Linux.
  *
  * netinet/in.h must be included before any other sys header in order to properly
  * activate include guards in <linux/libc-compat.h> the kernel maintainers added
index b1832b5ae54c716031d5813c0708fd512f5cd4e2..799296fc9d2f4f29c5e2cf18e1f8777b150307e0 100644 (file)
@@ -109,7 +109,7 @@ struct  hostent {
     int h_addrtype; /* host address type */
     int h_length;   /* length of address */
     char    **h_addr_list;  /* list of addresses from name server */
-#define h_addr  h_addr_list[0]  /* address, for backward compatiblity */
+#define h_addr  h_addr_list[0]  /* address, for backward compatibility */
 };
 
 /*
@@ -417,7 +417,7 @@ int ruserok();
 struct hostent  *gethostbyname2();
 void        herror();
 char        *hstrerror();
-/* IPv6 prototype definitons */
+/* IPv6 prototype definitions */
 int     getaddrinfo();
 void        freeaddrinfo();
 const char  *gai_strerror();
@@ -461,7 +461,7 @@ extern int  *__h_errno();
  * Error return codes from gethostbyname() and gethostbyaddr()
  * (left in extern int h_errno).
  */
-#define HOST_NOT_FOUND  1 /* Authoritive Answer Host not found */
+#define HOST_NOT_FOUND  1 /* Authoritative Answer Host not found */
 #define TRY_AGAIN   2 /* Non-Authoritive Host not found, or SERVERFAIL */
 #define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
 #define NO_DATA     4 /* Valid name, no data record of requested type */
index 6b0e2948e20fa9cef44bba08a8252a65af25e2e7..64183b029fc2738291ac21dc44fcc51d273b6af4 100644 (file)
@@ -16,7 +16,7 @@
  * Update/Maintenance History:
  *
  *    26-Apr-2008 : Copied from FreeBSD via OpenGrok
- *          - added protection around libray headers
+ *          - added protection around library headers
  *          - added squid_ prefix for uniqueness
  *            so we can use it where OS copy is broken.
  *
index 788e577dcc8bf772f705e1a8e2dd935db3b2bbef..a99bd14950d45e6ead7d4e283d1a3a1bbe3f2624 100644 (file)
@@ -24,7 +24,7 @@ E        405 Method Not Allowed *
          406 Not Acceptable *
 -        407 Proxy Authentication Required *
          408 Request Timeout *
-         409 Confict *
+         409 Conflict *
 C        410 Gone *
          411 Length Required *
          412 Precondition Failed *
index 36006fca4cfc65e8e5d6774f92dfb14f628487bd..ef46b0928e4a9fa907ee1a8988c5cb76a2ae99a3 100644 (file)
@@ -11,7 +11,7 @@ detail: "%ssl_error_descr: %ssl_subject"
 descr: "Certificate does not match domainname"
 
 name: X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT
-detail: "SSL Certficate error: certificate issuer (CA) not known: %ssl_ca_name"
+detail: "SSL Certificate error: certificate issuer (CA) not known: %ssl_ca_name"
 descr: "Unable to get issuer certificate"
 
 name: X509_V_ERR_UNABLE_TO_GET_CRL
@@ -39,7 +39,7 @@ detail: "%ssl_error_descr: %ssl_subject"
 descr: "CRL signature failure"
 
 name: X509_V_ERR_CERT_NOT_YET_VALID
-detail: "SSL Certficate is not valid before: %ssl_notbefore"
+detail: "SSL Certificate is not valid before: %ssl_notbefore"
 descr: "Certificate is not yet valid"
 
 name: X509_V_ERR_CERT_HAS_EXPIRED
@@ -83,7 +83,7 @@ detail: "Self-signed SSL Certificate in chain: %ssl_subject"
 descr: "Self signed certificate in certificate chain"
 
 name: X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY
-detail: "SSL Certficate error: certificate issuer (CA) not known: %ssl_ca_name"
+detail: "SSL Certificate error: certificate issuer (CA) not known: %ssl_ca_name"
 descr: "Unable to get local issuer certificate"
 
 name: X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE
index a30b1c1eca1ab913930ed14edf6b50f4edb082dd..d394dd08266fa8ad910c004eccd5d7bffa843cda 100644 (file)
@@ -105,7 +105,7 @@ base64_encode_final(struct base64_encode_ctx *ctx,
 /* Encodes a string in one go, including any padding at the end.
  * Generates exactly BASE64_ENCODE_RAW_LENGTH(length) bytes of output.
  * Supports overlapped operation, if src <= dst. FIXME: Use of overlap
- * is deprecated, if needed there should be a separate public fucntion
+ * is deprecated, if needed there should be a separate public function
  * to do that.*/
 void
 base64_encode_raw(char *dst, size_t length, const uint8_t *src);
index c13c15601af7a747664e506b17fb7ac48761595b..deec0fe66fcc1b2ebb9ff90b9dd7ab23b85e6bb0 100644 (file)
@@ -449,7 +449,7 @@ heap_print_inorder(heap * hp, int id)
 }
 
 /*
- * Returns 1 if HP maintians the heap property and 0 otherwise.
+ * Returns 1 if HP maintains the heap property and 0 otherwise.
  */
 int
 verify_heap_property(heap * hp)
index 9cb24af69f05212250a485eb1a87921b6438f1a0..9d84007f9b6cc2637b5a12a20b4a129596389138 100644 (file)
@@ -29,7 +29,7 @@ TrieNode::~TrieNode()
 bool
 TrieNode::add(char const *aString, size_t theLength, void *privatedata, TrieCharTransform *transform)
 {
-    /* We trust that privatedata and existant keys have already been checked */
+    /* We trust that privatedata and existent keys have already been checked */
 
     if (theLength) {
         int index = transform ? (*transform)(*aString): *aString;
index 5c7be74c6225234c8623e2e3af7528b7ad222cb8..ad65964ac3eeabd076fe679be6c96f4c17079928 100644 (file)
@@ -145,7 +145,7 @@ ntlm_fetch_string(const ntlmhdr *packet, const int32_t packet_size, const strhdr
 }
 
 /**
- * Adds something to the payload. The caller must guarrantee that
+ * Adds something to the payload. The caller must guarantee that
  * there is enough space in the payload string to accommodate the
  * added value.
  * payload_length and hdr will be modified as a side-effect.
index 3954b7b45585ef05de62e7973f927dec9f7bda1f..ebd7ea67e05e39684a3dece5fb97554186f5a108 100644 (file)
@@ -10,7 +10,7 @@
 #define SQUID_NTLMAUTH_H
 
 /* NP: All of this cruft is little endian */
-/* Endian functions are usualy handled by the OS but not always. */
+/* Endian functions are usually handled by the OS but not always. */
 #include "ntlmauth/support_endian.h"
 
 #ifdef __cplusplus
index 26783032ac2232d68d83cebfffb455d8519af927..a274ca13bde6e7ecb442faefba66b00a39024f56 100644 (file)
@@ -80,7 +80,7 @@
  *  constant. Best metric to watch is "average time" and total cumulated
  *  time in given timeframe, which really show percentage of time spent
  *  in given section of code, and its average completion time. This data
- *  could be used to detect bottlenecks withing squid and optimise them.
+ *  could be used to detect bottlenecks within squid and optimise them.
  *
  * \par
  *  TOTALS are quite off reality. Its there just to summarise cumulative
index 7d7a81f56bd76556434d0840105da51d1ef4c981..538c3b9362991efd9ad14fd75040682c530aaf0a 100644 (file)
@@ -143,7 +143,7 @@ static char *rn_zeros, *rn_ones;
  * node as high in the tree as we can go.
  *
  * The present version of the code makes use of normal routes in short-
- * circuiting an explict mask and compare operation when testing whether
+ * circuiting an explicit mask and compare operation when testing whether
  * a key satisfies a normal route, and also in remembering the unique leaf
  * that governs a subtree.
  */
index 363d4533b3acd1f234fc94f090e8db7c74edcedc..8fd53a72cfb4ff90600c1787e9b56f1126719371 100644 (file)
@@ -158,7 +158,7 @@ RFCNB_Print_Hex(FILE * fd, struct RFCNB_Pkt *pkt, int Offset, int Len)
 
     j = 0;
 
-    /* We only want to print as much as sepcified in Len */
+    /* We only want to print as much as specified in Len */
 
     while (pkt_ptr != NULL) {
 
@@ -478,7 +478,7 @@ RFCNB_Session_Req(struct RFCNB_Con *con,
 
     switch (RFCNB_Pkt_Type(resp)) {
 
-    case RFCNB_SESSION_REJ:     /* Didnt like us ... too bad */
+    case RFCNB_SESSION_REJ:     /* Didn't like us ... too bad */
 
         /* Why did we get rejected ? */
 
index 0f813e478d687feb1a90e884c8a017c1bf6e8df9..cc7a37700365d3ab20d055b24678771f51b29a70 100644 (file)
@@ -527,7 +527,7 @@ int SMB_Write(SMB_File *File_Handle, char *data, int numbytes)
 
     max_write_data = (File_Handle -> tree -> mbs) - pkt_len;
 
-    /* the 3 is for the data block id and length that preceeds the data */
+    /* the 3 is for the data block id and length that precedes the data */
 
     while (bytes_left > 0) {
 
@@ -1211,7 +1211,7 @@ int SMB_Search(SMB_Tree_Handle tree,
     SSVAL(SMB_Hdr(pkt), SMB_hdr_mid_offset, tree -> con -> mid);
     SSVAL(SMB_Hdr(pkt), SMB_hdr_uid_offset, tree -> con -> uid);
 
-    /* Tell server we known about non-dos names and extended attibutes */
+    /* Tell server we known about non-dos names and extended attributes */
 
     SSVAL(SMB_Hdr(pkt), SMB_hdr_flg2_offset,
           (SMB_FLG2_NON_DOS | SMB_FLG2_EXT_ATR));
index 59a4db000acd1c8d9d598a0789c3129b615994f6..7381323369775b647823d49b1faf5b1089e89f78 100644 (file)
@@ -112,7 +112,7 @@ int SMBapi_NetUserPasswordSet(SMB_Tree_Handle tree, char *user,
 
     SSVAL(SMB_Hdr(pkt), SMB_trans_len, param_len + strlen(SMB_LMAPI_SLOT) + 1);
 
-    p = SMB_Hdr(pkt) + SMB_trans_len + 2;  /* Skip the BCC and ect */
+    p = SMB_Hdr(pkt) + SMB_trans_len + 2;  /* Skip the BCC and etc */
 
     strcpy(p, SMB_LMAPI_SLOT);
     p = p + strlen(SMB_LMAPI_SLOT) + 1;
@@ -284,7 +284,7 @@ int SMBapi_NetSetUserInfo(SMB_Tree_Handle tree, char *user,
     SSVAL(SMB_Hdr(pkt), SMB_trans_len, param_len + strlen(SMB_LMAPI_SLOT) +
           1 + data_len);
 
-    p = SMB_Hdr(pkt) + SMB_trans_len + 2;  /* Skip the BCC and ect */
+    p = SMB_Hdr(pkt) + SMB_trans_len + 2;  /* Skip the BCC and etc */
 
     strcpy(p, SMB_LMAPI_SLOT);
     p = p + strlen(SMB_LMAPI_SLOT) + 1;
index 25654174ee0dedd931d3ee14469330afd184c77e..4dadc1c33b4cbba47c0926fe60ecd9687a55a2d4 100644 (file)
@@ -299,7 +299,7 @@ typedef unsigned char UCHAR;
 #define SMB_openx_mod_offset    39        /* mode to open with       */
 #define SMB_openx_atr_offset    41        /* search attributes       */
 #define SMB_openx_fat_offset    43        /* File attributes         */
-#define SMB_openx_tim_offset    45        /* time and date of creat  */
+#define SMB_openx_tim_offset    45        /* time and date of create  */
 #define SMB_openx_ofn_offset    49        /* Open function           */
 #define SMB_openx_als_offset    51        /* Space to allocate on    */
 #define SMB_openx_res_offset    55        /* reserved                */
index 1dd5ef8bd3e90a22908ed614dd1d87c078f4ed5c..bb92b2dd62fcba4bd062a2ede254b0c78b348c44 100644 (file)
@@ -234,7 +234,7 @@ int SMB_Figure_Protocol(const char *dialects[], int prot_index)
 
 /* Negotiate the protocol we will use from the list passed in Prots       */
 /* we return the index of the accepted protocol in NegProt, -1 indicates  */
-/* none acceptible, and our return value is 0 if ok, <0 if problems       */
+/* none acceptable, and our return value is 0 if ok, <0 if problems       */
 
 int SMB_Negotiate(SMB_Handle_Type Con_Handle, const char *Prots[])
 
index f9aa8abf1833684d562abea8effe712dabb66131..7622300fb4ffef2893a5e4a0bca0b687ef9a79d1 100644 (file)
@@ -122,7 +122,7 @@ Parser
 The parser now accepts two additional pieces of information in a mib:
 DESCRIPTION and INDEX.  It also handles "ACCESS" and "MAX-ACCESS".
 With these additions, SNMPv2 SMI MIBs can be parsed with minimal
-changes.  (Specificly, with the removal of text conventions, etc.)
+changes.  (Specifically, with the removal of text conventions, etc.)
 
 The included CMU MIB should be a good example.
 
index 9e9e3d223d947527dfe0efc8eb2b4ccee980f21b..eedaffaea71016f37de9d3c9fdd4c9cf7279855e 100644 (file)
@@ -658,7 +658,7 @@ asn_build_length(u_char * data, int *datalength,
 }
 
 /*
- * asn_parse_objid - pulls an object indentifier out of an ASN object
+ * asn_parse_objid - pulls an object identifier out of an ASN object
  * identifier type.
  *  On entry, datalength is input as the number of valid bytes following
  *   "data".  On exit, it is returned as the number of valid bytes
@@ -985,7 +985,7 @@ asn_build_bitstring(u_char * data, int *datalength,
 /*
  * To do: Write an asn_parse_exception function to go with the new
  * asn_build_exception function below so that the exceptional values can
- * be handled in input packets aswell as output ones.
+ * be handled in input packets as well as output ones.
  */
 
 /*
index 69297e5f646e1f6a918dad563b4002b925b6d997..b42534582b45c8210945b55f8fcea663bb32fe1c 100644 (file)
@@ -140,7 +140,7 @@ void testRFC1738::PercentZeroNullDecoding()
     CPPUNIT_ASSERT(memcmp(unescaped_str, "w%0rd",6)==0);
     xfree(unescaped_str);
 
-    /* Handle '0' bytes embeded in encoded % */
+    /* Handle '0' bytes embedded in encoded % */
     unescaped_str = xstrdup("w%%00%rd");
     rfc1738_unescape(unescaped_str);
     CPPUNIT_ASSERT(memcmp(unescaped_str, "w%00%rd",8)==0);
index a566b3bf89d16a0b6929571892872ece87c5694e..969ce1d5b11a5753587e5362958b00442e613e3f 100755 (executable)
@@ -157,7 +157,7 @@ foreach my $fname (@FileNames) {
        my $extras = ''; # DEBUG section, inspired by ..., etc.
 
        if (defined $boiler) {
-               my $copyClaims = ''; # formatted Copyright claims extraced from sources
+               my $copyClaims = ''; # formatted Copyright claims extracted from sources
                my $preserveClaims = 0; # whether to preserve them or not
 
                if (my @rawClaims = ($boiler =~ m/$reClaims/g)) {
@@ -221,7 +221,7 @@ warn($c) if $c =~ /\S/;
        }
 
        # Some files have license declarations way down in the code so we may not
-       # find a boilerplate at all or find an "empty" boilerplate preceeding them.
+       # find a boilerplate at all or find an "empty" boilerplate preceding them.
        my $license =
                "Copyright|".
                "This program is free software|".
index e8c788479fc77e5ae331cb032e4ec3aa6bcece72..e01c8c5d109f56c59d9ac97b1e9bfedef748b96c 100755 (executable)
@@ -73,7 +73,7 @@ for ($i = 0 ; $i < $no_cachedir; $i++) {
        system("find ./ -print -type f > $tmpdir/fp$$");
        chdir($tmpdir);
 # this cut prints only the lines with 4 fields so unnecessary lines
-# are supressed
+# are suppressed
        system("cut -d'/' -f4 -s fp$$ >> cd$$ ; rm fp$$")
 }
 system("sort -T $tmpdir cd$$ >scd$$; rm cd$$");
index 50a498c1f90ebf35df30534cada60d0ed057a079..d01ac6640350348a683c56558060858456314f60 100644 (file)
@@ -53,6 +53,7 @@ upto
 vaid
 valuse
 whan
+whats
 whe
 wil
 wnat
index ca2d9b828edeeb4f9286157e0c16f3c857f34477..b1480a52e44374e762302506e546ff36f44ccd8a 100755 (executable)
@@ -7,7 +7,7 @@
 ## Please see the COPYING and CONTRIBUTORS files for details.
 ##
 
-# Reads cache.log from STDIN, preferrably with full debugging enabled.
+# Reads cache.log from STDIN, preferably with full debugging enabled.
 # Finds creation and destruction messages for a given class.
 # At the end, reports log lines that correspond to still-alive objects.
 # Also reports the number of objects found (total and still-alive).
index c3976495d26c7f1c853573688ed74552e5e3e7aa..3bed0966e6ff6c498efda8b169f2700a4099bf82 100755 (executable)
@@ -95,7 +95,7 @@ while($out){
 
     my $pid;
     if($pid=fork()){
-       #do parrent staf
+       #do parent staf
        close(FROM_ASTYLE);
        
        if(!open(IN, "<$in")){
index 463356c97da7be3c3c4ceecb68b484f96b6d1b35..cdb53fb363f6e13d046dd9c57db4e090dd646431 100755 (executable)
@@ -21,7 +21,7 @@
 # -c    -> set cache directory
 # -n    -> use Netscape cache format (default is CERN)
 # -p    -> port number to listen on (default 3130)
-# -v    -> verbose - writes activitiy log to stderr
+# -v    -> verbose - writes activity log to stderr
 #
 # group -> multicast group to listen on
 
index fb753064a1cc880bf755c3e4910a28b1957af43d..998ed9fa6f1007d3fe8dd7d95c5f3b749cb26791 100755 (executable)
@@ -19,7 +19,7 @@
 # The error-details.txt file consist of records like the following:
 #
 #  name: X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT
-#  detail: "SSL Certficate error: certificate issuer (CA) not known: %ssl_ca_name"
+#  detail: "SSL Certificate error: certificate issuer (CA) not known: %ssl_ca_name"
 #  descr: "Unable to get issuer certificate"
 #
 # The records separated with an empty line.
index 9c7a4b928a4da7ef713db227a7d6e9320187a470..67d93e9d0444852ae039d4de65fce89c437c11db 100755 (executable)
@@ -14,7 +14,7 @@
 # 
 # The output of the tool is a source file where each block of consecutive
 # include directives for project-specific files (#include "header.h")
-# is sorted with this specification: squid.h (if present) is alwasy first,
+# is sorted with this specification: squid.h (if present) is always first,
 # then the other directives are sorted in case-insensitive alphabetical order.
 #
 # Suggested usage:
index c1d3411941f8fff96d97a1b4fd336d41896247f3..a4ecabd163f1ac7546914f4069b7231095838f77 100755 (executable)
@@ -73,7 +73,7 @@ for FILENAME in `git ls-files`; do
                        md52=`cat  $FILENAME.astylebak| tr -d "\n \t\r" | $MD5`;
 
                        if test "$md51" != "$md52"; then
-                               echo "ERROR: File $FILENAME not formating well";
+                               echo "ERROR: File $FILENAME not formatting well";
                                mv $FILENAME $FILENAME.astylebad
                                mv $FILENAME.astylebak $FILENAME
                                git checkout -- ${FILENAME}
@@ -285,7 +285,7 @@ echo " "
 # Build the GPERF generated content
 make -C src/http gperf-files
 
-# Run formating
+# Run formatting
 echo "" >doc/debug-sections.tmp
 srcformat || exit 1
 sort -u <doc/debug-sections.tmp | sort -n >doc/debug-sections.tmp2
index 6378889fbd74b792bb8fea44bda5867a844e0c86..d986d2e29abe7b225ab27989571da948e8ffc44f 100755 (executable)
@@ -338,7 +338,7 @@ foreach $name (@names) {
        generate_page("${top}/${pagetemplate}", $option{$name});
 }
 
-# and now, the alpabetic index file!
+# and now, the alphabetic index file!
 my $fh;
 my $fh_open = 0;
 
index 64bb76caedb3a3b368f9b7eeac5fecafe94484fc..bed78daa05beb2542503039363035f1365b92f97 100644 (file)
@@ -11,7 +11,7 @@
 
 /* Abstract interface for async engines which an event loop can utilise.
  *
- * Some implementations will be truely async, others like the event engine
+ * Some implementations will be truly async, others like the event engine
  * will be pseudo async.
  */
 
@@ -50,7 +50,7 @@ public:
      *
      * The timeout value is a requested timeout for this engine - the engine
      * should not block for more than this period. (If it takes longer than the
-     * timeout to do actual checks thats fine though undesirable).
+     * timeout to do actual checks that's fine though undesirable).
      */
     virtual int checkEvents(int timeout) = 0;
 };
index cf2ac7504d72f24f7a08ef8c7b04bd15e1b6d346..41a3a8ac53fca749f0b73c141b4fa3719c86fc33 100644 (file)
@@ -74,7 +74,7 @@ public:
     bool hasQueue() const;  ///< whether any clients are waiting for write quota
     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; ///< retuns the next fd reservation
+    int quotaPeekFd() const; ///< returns the next fd reservation
     unsigned int quotaPeekReserv() const; ///< returns the next reserv. to pop
     void quotaDequeue(); ///< pops queue head from queue
     void kickQuotaQueue(); ///< schedule commHandleWriteHelper call
@@ -91,7 +91,7 @@ public:
     /**
      * Configure client write limiting (note:"client" here means - IP). It is called
      * by httpAccept in client_side.cc, where the initial bucket size (anInitialBurst)
-     * computed, using the configured maximum bucket vavlue and configured initial
+     * computed, using the configured maximum bucket value and configured initial
      * bucket value(50% by default).
      *
      * \param  writeSpeedLimit is speed limit configured in config for this pool
index f1b4d7f36be4cf715f3a1f72c19adf7b81ceeaf2..20435b943dca235db5f76157a11c2eef2bae2bf6 100644 (file)
@@ -11,7 +11,7 @@
 
 /* Dispatch code to handle events that have completed. Completed events are queued
  * with a completion dispatcher by the OS Async engine - i.e. the poll or kqueue or
- * select loop, or a signal reciever, or the diskd/diskthreads/etc modules.
+ * select loop, or a signal receiver, or the diskd/diskthreads/etc modules.
  */
 
 class CompletionDispatcher
index 16e5006c203a83ab8fe4757940774f6fe1ee0543..697c10b58a136bd8562c1bf7475fa5e072edf361 100644 (file)
@@ -77,7 +77,7 @@ public:
     static char *RegexStrtokFile();
 
     /**
-     * Parse the next token as a regex patern. The regex patterns are non quoted
+     * Parse the next token as a regex pattern. The regex patterns are non quoted
      * tokens.
      */
     static char *RegexPattern();
@@ -134,7 +134,7 @@ public:
 
     /**
      * Strict syntax mode. Does not allow not alphanumeric characters in unquoted tokens.
-     * Controled by the  configuration_includes_quoted_values in squid.conf but remains
+     * Controlled by the  configuration_includes_quoted_values in squid.conf but remains
      * false when the the legacy ConfigParser::NextQuotedToken() call forces
      * RecognizeQuotedValues to be temporary true.
      */
@@ -212,7 +212,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 poped from cfg files, will just previewd.
+    static bool PreviewMode_; ///< The next token will not popped from cfg files, will just previewd.
     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 0dab628b371854fbb5036c5ed4b49747fc1864d8..00aec4d8d48c090a48df6d9ac41f987285ee5448 100644 (file)
@@ -419,7 +419,7 @@ IpcIoFile::canWait() const
     const int expectedWait = max(oldestWait, rateWait);
     if (expectedWait < 0 ||
             static_cast<time_msec_t>(expectedWait) < config.ioTimeout)
-        return true; // expected wait time is acceptible
+        return true; // expected wait time is acceptable
 
     debugs(47,2, HERE << "cannot wait: " << expectedWait <<
            " oldest: " << SipcIo(KidIdentifier, oldestIo, diskId));
index 93e11168873db068308410ce3a92477e1c0f2f88..77e34d2c5ca840043846c42bf5c7dd1cffe8c076 100644 (file)
@@ -46,7 +46,7 @@ public:
      */
     bool runOnce();
 
-    /** set the primary async engine. The primary async engine recieves the
+    /** set the primary async engine. The primary async engine receives the
      * lowest requested timeout gathered from the other engines each loop.
      * (There is a default of 10ms if all engines are idle or request higher
      * delays).
index bd87e8b31c6705496a55d704ffc28e7edb4e0dd5..a065d33ac3aa901d38eb70a2da30a188a220e15d 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <vector>
 
-/// Counts events, forgetting old ones. Usefull for "3 errors/minute" limits.
+/// Counts events, forgetting old ones. Useful for "3 errors/minute" limits.
 class FadingCounter
 {
 public:
@@ -29,7 +29,7 @@ public:
     double horizon;
 
 private:
-    const int precision; ///< #counting slots, controls measur. occuracy
+    const int precision; ///< #counting slots, controls measur. accuracy
     double delta; ///< sub-interval duration = horizon/precision
 
     double lastTime; ///< time of the last update
index ca0acb79b8dcf4e7a7fdad7509524f065c6e8df0..56c7b77181340a0948733e21abf296a8b64aada8 100644 (file)
@@ -156,7 +156,7 @@ HttpHdrRangeSpec::canonize(int64_t clen)
     return length > 0;
 }
 
-/* merges recepient with donor if possible; returns true on success
+/* merges recipient with donor if possible; returns true on success
  * both specs must be canonized prior to merger, of course */
 bool
 HttpHdrRangeSpec::mergeWith(const HttpHdrRangeSpec * donor)
@@ -188,7 +188,7 @@ HttpHdrRangeSpec::mergeWith(const HttpHdrRangeSpec * donor)
         assert(rhs > offset);
         length = rhs - offset;
     } else {
-        /* does recepient contain donor? */
+        /* does recipient contain donor? */
         merged =
             offset <= donor->offset && donor->offset < rhs;
     }
index 22be5b3d36db7ab60b25acbd8721cc47ec2ed7c7..73d2baa05bbfb06c3615f36360dc31632755f6d3 100644 (file)
@@ -98,7 +98,7 @@ HttpHdrSc::parse(const String * str)
             ++p;
         }
 
-        /* decrease ilen to still match the token for ';' qualified non '=' statments */
+        /* decrease ilen to still match the token for ';' qualified non '=' statements */
         else if ((p = strchr(item, ';')) && (p - item < ilen)) {
             ilen = p - item;
             ++p;
@@ -113,7 +113,7 @@ HttpHdrSc::parse(const String * str)
         }
 
         /* Is this a targeted directive? */
-        /* TODO: remove the temporary useage and use memrchr and the information we have instead */
+        /* TODO: remove the temporary usage and use memrchr and the information we have instead */
         temp = xstrndup (item, initiallen + 1);
 
         if (!((target = strrchr (temp, ';')) && !strchr (target, '"') && *(target + 1) != '\0'))
index b19644a558e0f878cbd53ea0ba4c98b68fb8b89b..c9086e5184cdaa50c334dd01011a0192a476f1d9 100644 (file)
@@ -465,7 +465,7 @@ HttpHeader::parse(const char *header_start, size_t hdrLen, Http::ContentLengthIn
 
         if (field_start == field_end) {
             if (field_ptr < header_end) {
-                debugs(55, warnOnError, "WARNING: unparseable HTTP header field near {" <<
+                debugs(55, warnOnError, "WARNING: unparsable HTTP header field near {" <<
                        getStringPrefix(field_start, hdrLen-(field_start-header_start)) << "}");
                 PROF_stop(HttpHeaderParse);
                 clean();
@@ -477,7 +477,7 @@ HttpHeader::parse(const char *header_start, size_t hdrLen, Http::ContentLengthIn
 
         const auto e = HttpHeaderEntry::parse(field_start, field_end, owner);
         if (!e) {
-            debugs(55, warnOnError, "WARNING: unparseable HTTP header field {" <<
+            debugs(55, warnOnError, "WARNING: unparsable HTTP header field {" <<
                    getStringPrefix(field_start, field_end-field_start) << "}");
             debugs(55, warnOnError, " in {" << getStringPrefix(header_start, hdrLen) << "}");
 
index accdc580f1d85a4ec6b604ff15ac1ee94c7970b2..c919375ed344d42389a756a975dc50ee02305f5f 100644 (file)
@@ -42,7 +42,7 @@ public:
 
 /**
  * There may be more than one byte range specified in the request.
- * This object holds all range specs in order of their appearence
+ * This object holds all range specs in order of their appearance
  * in the request because we SHOULD preserve that order.
  */
 class HttpHdrRange
index ab84a20a5fc40031d153942d1837213db4e1fd74..1cc17763332877659c51af11fcd4165fe69d29a8 100644 (file)
@@ -115,7 +115,7 @@ getStringPrefix(const char *str, size_t sz)
 }
 
 /**
- * parses an int field, complains if soemthing went wrong, returns true on
+ * parses an int field, complains if something went wrong, returns true on
  * success
  */
 int
index d514ac604e1c817ffa9ec626a98da3e4941ac370..ceb454ca12cb1f1ea96d8c0faa6a34ce1661d093 100644 (file)
@@ -428,7 +428,7 @@ HttpReply::sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::Sta
         // catch missing or negative status value (negative '-' is not a digit)
         pos = protoPrefix.psize();
 
-        // skip arbitrary number of digits and a dot in the verion portion
+        // skip arbitrary number of digits and a dot in the version portion
         while ((size_t)pos <= hdr_len && (*(buf+pos) == '.' || xisdigit(*(buf+pos)) ) ) ++pos;
 
         // catch missing version info
index 34fd9f4785daee3a413f73be7b5ddd87f0874091..c3c03314f1f33c89c3cedf817a86805d4c2fb24e 100644 (file)
@@ -112,7 +112,7 @@ public:
     void packHeadersUsingSlowPacker(Packable &p) const;
 
     /** Clone this reply.
-     *  Could be done as a copy-contructor but we do not want to accidently copy a HttpReply..
+     *  Could be done as a copy-contructor but we do not want to accidentally copy a HttpReply..
      */
     HttpReply *clone() const;
 
index c6c74f182ffb22cff0eeb5d6245591149a0c6f5e..6cfc7859a85380df819119dabff201a26632aa9c 100644 (file)
@@ -273,7 +273,7 @@ HttpRequest::sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::S
     // content is long enough to possibly hold a reply
     // 2 being magic size of a 1-byte request method plus space delimiter
     if (hdr_len < 2) {
-        // this is ony a real error if the headers apparently complete.
+        // this is only a real error if the headers apparently complete.
         if (hdr_len > 0) {
             debugs(58, 3, HERE << "Too large request header (" << hdr_len << " bytes)");
             *error = Http::scInvalidHeader;
@@ -557,7 +557,7 @@ HttpRequest::maybeCacheable()
 {
     // Intercepted request with Host: header which cannot be trusted.
     // Because it failed verification, or someone bypassed the security tests
-    // we cannot cache the reponse for sharing between clients.
+    // we cannot cache the response for sharing between clients.
     // TODO: update cache to store for particular clients only (going to same Host: and destination IP)
     if (!flags.hostVerified && (flags.intercepted || flags.interceptTproxy))
         return false;
index 62a5eeaf50737920b99cf36f2076319966a35d5b..85bf84f1ac428b453f915426b491c492dacf72af 100644 (file)
@@ -39,8 +39,8 @@
  * ----------
  *
  * MemBuffer is a memory-resident buffer with printf()-like interface. It
- * hides all offest handling and overflow checking. Moreover, it has a
- * build-in control that no partial data has been written.
+ * hides all offset handling and overflow checking. Moreover, it has a
+ * built-in control that no partial data has been written.
  *
  * MemBuffer is designed to handle relatively small data. It starts with a
  * small buffer of configurable size to avoid allocating huge buffers all the
@@ -271,7 +271,7 @@ MemBuf::vappendf(const char *fmt, va_list vargs)
 
         /* Fix of bug 753r. The value of vargs is undefined
          * after vsnprintf() returns. Make a copy of vargs
-         * incase we loop around and call vsnprintf() again.
+         * in case we loop around and call vsnprintf() again.
          */
         va_list ap;
         va_copy(ap,vargs);
index 1739128bdde2f3e6b4e6023357f8833ee1a4626f..6920de270f0bfe2054be2e9c7ee6e27c2dfe4ce3 100644 (file)
@@ -84,7 +84,7 @@ public:
 
     /// Walks through the  possible values list of the note, selects
     /// the first value, matching the given HttpRequest and HttpReply
-    /// and assignes the given 'matched' to it.
+    /// and assigns the given 'matched' to it.
     /// \return true if matched, false otherwise
     bool match(HttpRequest *request, HttpReply *reply, const AccessLogEntryPointer &al, SBuf &matched);
     const SBuf &key() const { return theKey; }
index 23d9cb711fddfdfd8adb7064d1ce941c17cdda27..56eb1dcb5475caf3ee5125eb80e4aaa42f233dbc 100644 (file)
@@ -72,7 +72,7 @@ public:
     bool internal = false;
     /** if set, request to try very hard to keep the connection alive */
     bool mustKeepalive = false;
-    /** set if the rquest wants connection oriented auth */
+    /** set if the request wants connection oriented auth */
     bool connectionAuth = false;
     /** set if connection oriented auth can not be supported */
     bool connectionAuthDisabled = false;
@@ -83,7 +83,7 @@ public:
     bool pinned = false;
     /** Authentication was already sent upstream (e.g. due tcp-level auth) */
     bool authSent = false;
-    /** Deny direct forwarding unless overriden by always_direct
+    /** Deny direct forwarding unless overridden by always_direct
      * Used in accelerator mode */
     bool noDirect = false;
     /** Reply with chunked transfer encoding */
index 91bb22f7b6a30ab367b6f120afe976dab0e6ef2c..061b2b194bf70bbd472c576a46af09893d1a591a 100644 (file)
@@ -394,7 +394,7 @@ public:
         acl_access *followXFF;
 #endif /* FOLLOW_X_FORWARDED_FOR */
 
-        /// acceptible PROXY protocol clients
+        /// acceptable PROXY protocol clients
         acl_access *proxyProtocol;
 
         /// spoof_client_ip squid.conf acl.
index bceb9db53f9d04cd86e25f5a72fee6715eba8e8e..2d77b951c9e5592c06a9c016178acb5f3668dce7 100644 (file)
@@ -27,7 +27,7 @@ extern time_t squid_curtime;
 time_t getCurrentTime(void);
 int tvSubMsec(struct timeval, struct timeval);
 
-/// timeval substraction operation
+/// timeval subtraction operation
 /// \param[out] res = t2 - t1
 void tvSub(struct timeval &res, struct timeval const &t1, struct timeval const &t2);
 
index 36e8590ee04a433f927753f880821b6c94728466..9b80cf14e6578a1855b86fd078ae2072a996247f 100644 (file)
@@ -88,7 +88,7 @@ protected:
      *
      *  In practice, the requirements are less strict,
      *  but then it gets hard to define them without math notation.
-     *  val_in is applied after offseting the value but before scaling
+     *  val_in is applied after offsetting the value but before scaling
      *  See log and linear based histograms for examples
      */
     void init(unsigned int capacity, hbase_f * val_in, hbase_f * val_out, double min, double max);
index 4d7dbeff47776e4a59e241e0ef0e26cec27fe9da..fdaa930e6799eb43ec911053c00ec166580d1c27 100644 (file)
@@ -253,7 +253,7 @@ public:
     void lock(const char *context);
 
     /// disclaim shared ownership; may remove entry from store and delete it
-    /// returns remaning lock level (zero for unlocked and possibly gone entry)
+    /// returns remaining lock level (zero for unlocked and possibly gone entry)
     int unlock(const char *context);
 
     /// returns a local concurrent use counter, for debugging
index 8943f2ee39d1656816d427c91a98d43beb69c6c3..e3350094faa50a48671e27dd8567879fefe2f839 100644 (file)
@@ -63,7 +63,7 @@ public:
     std::ostream &print(std::ostream &os) const;
 
 private:
-    uint8_t raw[3]; // designed to follow "op" members, in pading space
+    uint8_t raw[3]; // designed to follow "op" members, in padding space
 };
 
 inline std::ostream &
@@ -134,7 +134,7 @@ public:
      * The value of the response's Expires: header, if any.
      * If the response does not have an Expires: header, this
      * is set to -1.
-     * If the response has an invalid (unparseable)
+     * If the response has an invalid (unparsable)
      * Expires: header, it is also set to -1.  There are some cases
      * where Squid sets expires to -2. This happens for the
      * internal "netdb" object and for FTP URL responses.
@@ -144,7 +144,7 @@ public:
     /**
      * The value of the response's Last-modified: header, if any.
      * This is set to -1 if there is no Last-modified: header,
-     * or if it is unparseable.
+     * or if it is unparsable.
      */
     SwappedTime lastmod = 0;
 
index 7f45ee4c09c42a9be64e84c00fc9e078ac6851c1..1dba00f3f47c74ad79431b63f0db69a09bfd73df 100644 (file)
@@ -60,7 +60,7 @@ strListIsSubstr(const String * list, const char *s, char del)
      * Note: the original code with a loop is broken because it uses strstr()
      * instead of strnstr(). If 's' contains a 'del', strListIsSubstr() may
      * return true when it should not. If 's' does not contain a 'del', the
-     * implementaion is equavalent to strstr()! Thus, we replace the loop with
+     * implementation is equavalent to strstr()! Thus, we replace the loop with
      * strstr() above until strnstr() is available.
      */
 }
index f14f802399574a9036c26f091658d5b929e83ee9..25faf2ab8a34ad900f2ede12c6023bd1daed324d 100644 (file)
@@ -494,7 +494,7 @@ int WIN32_Subsystem_Init(int * argc, char *** argv)
         if (svcHandle == 0)
             return 1;
 
-        /* Set Process work dir to directory cointaining squid.exe */
+        /* Set Process work dir to directory containing squid.exe */
         GetModuleFileName(NULL, path, 512);
 
         WIN32_module_name=xstrdup(path);
@@ -940,7 +940,7 @@ static int Win32SockInit(void)
     } else if (s_iInitCount < 0)
         return (s_iInitCount);
 
-    /* s_iInitCount == 0. Do the initailization */
+    /* s_iInitCount == 0. Do the initialization */
     iVersionRequested = MAKEWORD(2, 0);
 
     err = WSAStartup((WORD) iVersionRequested, &wsaData);
index 0cc5d80c9a59a424ea95cde17921a032cc970f35..3e73e022f8d995bfd86cb65a3d3a9de727e827e6 100644 (file)
@@ -65,7 +65,7 @@ public:
     /// configures ACL options, throwing on configuration errors
     virtual void parseFlags();
 
-    /// parses node represenation in squid.conf; dies on failures
+    /// parses node representation in squid.conf; dies on failures
     virtual void parse() = 0;
     virtual char const *typeString() const = 0;
     virtual bool isProxyAuth() const;
index 83dbe4ed3e5460de750cc7d2c2830620cf401d48..b08bfc3683365fe8c6b2759bf56da4b4f67954c0 100644 (file)
@@ -14,7 +14,7 @@
 namespace Acl
 {
 
-/// Configurable all-of ACL. Each ACL line is a conjuction of ACLs.
+/// Configurable all-of ACL. Each ACL line is a conjunction of ACLs.
 /// Uses AndNode and OrNode to handle squid.conf configuration where multiple
 /// acl all-of lines are always ORed together.
 class AllOf: public Acl::InnerNode
index 1fb5c5f93323ca1d0f0973500399ad53697acc50..cf4e147300baa68e497adf7808964f719e493b95 100644 (file)
@@ -58,7 +58,7 @@ ACLARP::empty () const
  * Working on setting up a proper firewall for a network containing some
  * Win'95 computers at our Univ, I've discovered that some smart students
  * avoid the restrictions easily just changing their IP addresses in Win'95
- * Contol Panel... It has been getting boring, so I took Squid-1.1.18
+ * Control Panel... It has been getting boring, so I took Squid-1.1.18
  * sources and added a new acl type for hard-wired access control:
  *
  * acl <name> arp <Ethernet address> ...
index 5be3db4e1b1cc6b3671b1b123e495eaab668eed1..936a2b23117a808576b7ebc7559a9b6bc566f9d3 100644 (file)
@@ -37,7 +37,7 @@ private:
     virtual int doMatch(ACLChecklist *checklist, Nodes::const_iterator start) const;
 };
 
-/// An inner ACL expression tree node representing a boolean conjuction (AND)
+/// An inner ACL expression tree node representing a boolean conjunction (AND)
 /// operator applied to a list of child tree nodes.
 /// For example, conditions expressed on a single http_access line are ANDed.
 class AndNode: public InnerNode
index c8e65b2169261c22a60442c7143cc8d990d6fd20..c8575adcfdc0601d84fc5f7c02d9b77fbc9b35d2 100644 (file)
@@ -189,7 +189,7 @@ aclParseAccessLine(const char *directive, ConfigParser &, acl_access **treep)
 void
 aclParseAclList(ConfigParser &, Acl::Tree **treep, const char *label)
 {
-    // accomodate callers unable to convert their ACL list context to string
+    // accommodate callers unable to convert their ACL list context to string
     if (!label)
         label = "...";
 
index 4b87e48db9535abb837dcddc918b09a653bb8914..f85628a21d9f6b7333b955ad43e05e0d31bad297 100644 (file)
@@ -35,7 +35,7 @@ void aclParseAccessLine(const char *directive, ConfigParser &parser, Acl::Tree *
 /// The label parameter identifies the context (for debugging).
 /// \ingroup ACLAPI
 void aclParseAclList(ConfigParser &parser, Acl::Tree **, const char *label);
-/// Template to convert various context lables to strings. \ingroup ACLAPI
+/// Template to convert various context labels to strings. \ingroup ACLAPI
 template <class Any>
 inline
 void aclParseAclList(ConfigParser &parser, Acl::Tree **tree, const Any any)
index af2ffab0edf6d6969741e4690772786f755a295d..bc7c1a1acbf52dbff7fb144d221d717474e9d0b9 100644 (file)
@@ -48,7 +48,7 @@ Acl::InnerNode::lineParse()
     if (!cfgline)
         cfgline = xstrdup(config_input_line);
 
-    // expect a list of ACL names, each possibly preceeded by '!' for negation
+    // expect a list of ACL names, each possibly preceded by '!' for negation
 
     while (const char *t = ConfigParser::strtokFile()) {
         const bool negated = (*t == '!');
index 2c1153f279b65482794be1b850943007f611a12a..c5322bedd172f5035ec12b30b537c14447e24977 100644 (file)
@@ -180,7 +180,7 @@ acl_ip_data::DecodeMask(const char *asc, Ip::Address &mask, int ctype)
         if (mask.isIPv4()) {
             /* locate what CIDR mask was _probably_ meant to be in its native protocol format. */
             /* this will completely crap out with a security fail-open if the admin is playing mask tricks */
-            /* however, thats their fault, and we do warn. see bug 2601 for the effects if we don't do this. */
+            /* however, that's their fault, and we do warn. see bug 2601 for the effects if we don't do this. */
             unsigned int m = mask.cidr();
             debugs(28, DBG_CRITICAL, "WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 ranges.");
             debugs(28, DBG_CRITICAL, "WARNING: For now we will assume you meant to write /" << m);
index 72608b79a2d2ea7aeb16084c57ce3e78a8199a4b..6391f44ce48bf267abf273207e2433ce8420065e 100644 (file)
@@ -55,7 +55,7 @@
  *              Added support for running on a Domain Controller.
  * Version 1.10
  * 01-05-2003 Guido Serassio
- *              Added option for case insensitive group name comparation.
+ *              Added option for case insensitive group name comparison.
  *              More debug info.
  *              Updated documentation.
  *              Segfault bug fix (Bugzilla #574)
@@ -184,7 +184,7 @@ GetDomainName(void)
                 debug("LsaQueryInformationPolicy Error: %ld\n", status);
             } else {
 
-                /* Get name in useable format */
+                /* Get name in usable format */
                 DomainName = AllocStrFromLSAStr(ppdiDomainInfo->Name);
 
                 /*
index 43feffda7f188bda64b259a8daba32e879ef0d8e..121784828b0ce6f61b89fa5c23466bc106e01280 100644 (file)
@@ -135,7 +135,7 @@ typedef struct {
 #define LDAP_ERR_NULL           -1              /* Null edui_ldap_t pointer */
 #define LDAP_ERR_POINTER        -2              /* Null l->lp pointer */
 #define LDAP_ERR_PARAM          -3              /* Null or Missing parameters */
-#define LDAP_ERR_INIT           -4              /* Not initalized */
+#define LDAP_ERR_INIT           -4              /* Not initialized */
 #define LDAP_ERR_OPEN           -5              /* Not open */
 #define LDAP_ERR_CONNECT        -6              /* Unable to connect */
 #define LDAP_ERR_BIND           -7              /* Not bound */
@@ -384,7 +384,7 @@ DisplayUsage()
     local_printfx("\n");
 }
 
-/* Initalizes program's configuration paremeters */
+/* Initializes program's configuration parameters */
 static void
 InitConf()
 {
@@ -544,7 +544,7 @@ DisplayConf()
 
 /* InitLDAP() - <edui_ldap_t>
  *
- * Initalize LDAP structure for use, zeroing out all variables.
+ * Initialize LDAP structure for use, zeroing out all variables.
  *
  */
 static void
@@ -603,7 +603,7 @@ static int
 OpenLDAP(edui_ldap_t *l, char *h, unsigned int p)
 {
     if ((l == NULL) || (h == NULL)) return LDAP_ERR_NULL;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initalized, or might be in use */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initialized, or might be in use */
     if (l->status & LDAP_OPEN_S) return LDAP_ERR_OPEN;          /* Already open */
     if (l->status & LDAP_BIND_S) return LDAP_ERR_BIND;          /* Already bound */
 
@@ -646,7 +646,7 @@ CloseLDAP(edui_ldap_t *l)
     int s;
     if (l == NULL) return LDAP_ERR_NULL;
     if (l->lp == NULL) return LDAP_ERR_NULL;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Connection not initalized */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Connection not initialized */
     if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;       /* Connection not open */
 
     if (l->lm != NULL) {
@@ -683,7 +683,7 @@ SetVerLDAP(edui_ldap_t *l, int v)
     if (l == NULL) return LDAP_ERR_NULL;
     if ((v > 3) || (v < 1)) return LDAP_ERR_PARAM;
     if (l->lp == NULL) return LDAP_ERR_POINTER;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initalized */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initialized */
     if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;       /* Not open */
     if (l->status & LDAP_BIND_S) return LDAP_ERR_BIND;          /* Already bound */
 
@@ -709,7 +709,7 @@ BindLDAP(edui_ldap_t *l, char *dn, char *pw, unsigned int t)
 {
     int s;
     if (l == NULL) return LDAP_ERR_NULL;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initalized */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initialized */
     if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;       /* Not open */
     if (l->status & LDAP_BIND_S) return LDAP_ERR_BIND;          /* Already bound */
     if (l->lp == NULL) return LDAP_ERR_POINTER;             /* Error */
@@ -852,7 +852,7 @@ ConvertIP(edui_ldap_t *l, char *ip)
     void *y, *z;
     if (l == NULL) return LDAP_ERR_NULL;
     if (ip == NULL) return LDAP_ERR_PARAM;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initalized */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initialized */
     if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;       /* Not open */
     if (!(l->status & LDAP_BIND_S)) return LDAP_ERR_BIND;       /* Not bound */
 
@@ -913,7 +913,7 @@ static int
 ResetLDAP(edui_ldap_t *l)
 {
     if (l == NULL) return LDAP_ERR_NULL;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;                 /* Not initalized */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;                 /* Not initialized */
     if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;                 /* Not open */
     if (!(l->status & LDAP_BIND_S)) return LDAP_ERR_BIND;                 /* Not bound */
     if (!(l->status & LDAP_PERSIST_S)) return LDAP_ERR_PERSIST;           /* Not persistent */
@@ -960,7 +960,7 @@ SearchFilterLDAP(edui_ldap_t *l, char *group)
     int swi;
     char bufa[EDUI_MAXLEN], bufb[EDUI_MAXLEN], bufc[EDUI_MAXLEN], bufd[EDUI_MAXLEN], bufg[EDUI_MAXLEN];
     if (l == NULL) return LDAP_ERR_NULL;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;           /* Not initalized */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;           /* Not initialized */
     if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;           /* Not open */
     if (!(l->status & LDAP_BIND_S)) return LDAP_ERR_BIND;           /* Not Bound */
     if (l->search_ip[0] == '\0') return LDAP_ERR_DATA;              /* Search IP is required */
@@ -1049,7 +1049,7 @@ SearchLDAP(edui_ldap_t *l, int scope, char *filter, char **attrs)
     if (l == NULL) return LDAP_ERR_NULL;
     if ((scope < 0) || (filter == NULL)) return LDAP_ERR_PARAM;     /* If attrs is NULL, then all attrs will return */
     if (l->lp == NULL) return LDAP_ERR_POINTER;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initalized */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initialized */
     if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;       /* Not open */
     if (!(l->status & LDAP_BIND_S)) return LDAP_ERR_BIND;       /* Not bound */
     if (l->status & LDAP_SEARCH_S) return LDAP_ERR_SEARCHED;        /* Already searching */
@@ -1106,7 +1106,7 @@ SearchIPLDAP(edui_ldap_t *l)
     LDAPMessage *ent;
     if (l == NULL) return LDAP_ERR_NULL;
     if (l->lp == NULL) return LDAP_ERR_POINTER;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;               /* Not initalized */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;               /* Not initialized */
     if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;               /* Not open */
     if (!(l->status & LDAP_BIND_S)) return LDAP_ERR_BIND;               /* Not bound */
     if (!(l->status & LDAP_SEARCH_S)) return LDAP_ERR_NOT_SEARCHED;         /* Not searched */
@@ -1286,9 +1286,9 @@ const char
     case LDAP_ERR_POINTER:
         return "Null LDAP pointer";
     case LDAP_ERR_PARAM:
-        return "Null or Missing paremeter(s)";
+        return "Null or Missing parameter(s)";
     case LDAP_ERR_INIT:
-        return "LDAP data not initalized";
+        return "LDAP data not initialized";
     case LDAP_ERR_OPEN:
         return "LDAP connection is not active";
     case LDAP_ERR_CONNECT:
@@ -1300,9 +1300,9 @@ const char
     case LDAP_ERR_NOT_SEARCHED:
         return "LDAP connection has not been searched";
     case LDAP_ERR_INVALID:
-        return "Invalid paremeters";
+        return "Invalid parameters";
     case LDAP_ERR_OOB:
-        return "Paremeter is out of bounds";
+        return "Parameter is out of bounds";
     case LDAP_ERR_PERSIST:
         return "Persistent mode is not active";
     case LDAP_ERR_DATA:
@@ -1546,7 +1546,7 @@ MainSafe(int argc, char **argv)
         }
     }
 
-    /* Set predefined required paremeters if none are given, localhost:LDAP_PORT, etc */
+    /* Set predefined required parameters if none are given, localhost:LDAP_PORT, etc */
     if (edui_conf.host[0] == '\0')              /* Default to localhost */
         xstrncpy(edui_conf.host, "localhost", sizeof(edui_conf.host));
     if (edui_conf.port < 0)
@@ -1630,7 +1630,7 @@ MainSafe(int argc, char **argv)
         if (!(edui_ldap.status & LDAP_INIT_S)) {
             InitLDAP(&edui_ldap);
             debug("InitLDAP() -> %s\n", ErrLDAP(LDAP_ERR_SUCCESS));
-            if (edui_conf.mode & EDUI_MODE_PERSIST)                 /* Setup persistant mode */
+            if (edui_conf.mode & EDUI_MODE_PERSIST)                 /* Setup persistent mode */
                 edui_ldap.status |= LDAP_PERSIST_S;
         }
         if ((edui_ldap.status & LDAP_IDLE_S) && (edui_elap > 0)) {
index bfc40a93d38cc194fd8b43ffdbbd613af3b98963..0a1fe7453bcb8715086fb7883fd6212f9a1973fc 100644 (file)
@@ -116,7 +116,7 @@ load_dict(FILE * FH) {
                     current_entry->address =
                         (((inet_addr (tmpbuf))) & current_entry->netmask);
                 } else {
-                    /* when theres no slash, we figure the netmask is /32 */
+                    /* when there's no slash, we figure the netmask is /32 */
                     current_entry->address = (inet_addr(tmpbuf));
                     current_entry->netmask = (inet_addr("255.255.255.255"));
                 }
index a1d95d8b3e4e6ad86d555c457163e7d19ecc6d59..7b6750880a58b1aa7aa269084032f655503051f2 100755 (executable)
@@ -22,7 +22,7 @@ B<ext_kerberos_sid_group_acl> is an installed executable script.
 It uses B<ldapsearch> from Openldap to lookup the name of a AD group sid.
 
 This helper must be used in with the negotiate_kerberos_auth helper in a
-Microsft AD or Samba environement.
+Microsoft AD or Samba environment.
 
 It reads from the standard input the domain username and a list of group sids
 and tries to match the group SIDs to the AD group sids.
index 288d23649b010fd2b5a921f7850b3f15f5052009..ab28ef012926e8a152b4f971ace6a52fa42b7fe3 100644 (file)
@@ -73,7 +73,7 @@ TDB_CONTEXT *db = nullptr;
 typedef TDB_DATA DB_ENTRY;
 
 #else
-#error "Either Berkley DB or Trivial DB must be available"
+#error "Either Berkeley DB or Trivial DB must be available"
 #endif
 
 static void
@@ -295,7 +295,7 @@ int main(int argc, char **argv)
         const char *channel_id = strtok(request, " ");
         char *detail = strtok(NULL, "\n");
         if (detail == NULL) {
-            // Only 1 paramater supplied. We are expecting at least 2 (including the channel ID)
+            // Only 1 parameter supplied. We are expecting at least 2 (including the channel ID)
             fprintf(stderr, "FATAL: %s is concurrent and requires the concurrency option to be specified.\n", program_name);
             shutdown_db();
             exit(EXIT_FAILURE);
index 32a6a5fe485f1a0d9990bf34e9056ff0d634da48..ab4de43a716ca663b01f253a97ad5ec1c6299afd 100644 (file)
@@ -64,7 +64,7 @@ TDB_CONTEXT *db = nullptr;
 #define TQ_BUFFERSIZE                     1024
 
 /** If there is more than this given number of seconds between two
- * sucessive requests, than the second request will be treated as a
+ * successive requests, than the second request will be treated as a
  * new request and the time between first and seconds request will
  * be treated as a activity pause.
  *
index 249ea87c8ad35353d56463e6a0677c272e985b33..6e486090705ec9af01b517b5b6a72b8be9a909db 100644 (file)
@@ -136,7 +136,7 @@ Adaptation::Iterator::handleAdaptedHeader(Http::Message *aMsg)
     if (!theCause) { // probably sent a request message
         if (dynamic_cast<HttpReply*>(aMsg)) { // we got a response message
             if (HttpRequest *cause = dynamic_cast<HttpRequest*>(theMsg)) {
-                // definately sent request, now use it as the cause
+                // definitely sent request, now use it as the cause
                 theCause = cause; // moving the lock
                 theMsg = 0;
                 debugs(93,3, HERE << "in request satisfaction mode");
@@ -151,14 +151,14 @@ Adaptation::Iterator::handleAdaptedHeader(Http::Message *aMsg)
     adapted = true;
 
     clearAdaptation(theLauncher);
-    if (!updatePlan(true)) // do not immediatelly advance the new plan
+    if (!updatePlan(true)) // do not immediately advance the new plan
         thePlan.next(filter());
     step();
 }
 
 void Adaptation::Iterator::noteInitiatorAborted()
 {
-    announceInitiatorAbort(theLauncher); // propogate to the transaction
+    announceInitiatorAbort(theLauncher); // propagate to the transaction
     clearInitiator();
     mustStop("initiator gone");
 }
index a9e753104e06bf472a20d8e6e628bc7a9bb1f91b..3ce99fa4407c211684cf1f6827d1a3431ef45cd4 100644 (file)
@@ -274,7 +274,7 @@ Adaptation::ServiceConfig::grokUri(const char *value)
         }
     }
 
-    // if no port, the caller may use service_configConfigs or supply the default if neeeded
+    // if no port, the caller may use service_configConfigs or supply the default if needed
 
     ++s;
     e = strchr(s, '\0');
index c11bd99911e847128dabbf3db2ba19b60966c3b2..396e20bb74ebb244bb4561de0dd8f60c54a0be41 100644 (file)
@@ -96,7 +96,7 @@ Adaptation::Ecap::XactionRep::option(const libecap::Name &name) const
 
     // TODO: metaServerIp, metaAuthenticatedUser, and metaAuthenticatedGroups
 
-    // If the name is unknown, metaValue returns an emtpy area
+    // If the name is unknown, metaValue returns an empty area
     return metaValue(name);
 }
 
index 8467713fb94db7b6b47aba4dc84ff0827e79adfa..0ed8f731356c208fd12a4abd3f14478cdef6651d 100644 (file)
@@ -72,7 +72,7 @@ void Adaptation::Icap::Launcher::noteAdaptationAnswer(const Answer &answer)
 void Adaptation::Icap::Launcher::noteInitiatorAborted()
 {
 
-    announceInitiatorAbort(theXaction); // propogate to the transaction
+    announceInitiatorAbort(theXaction); // propagate to the transaction
     clearInitiator();
     Must(done()); // should be nothing else to do
 
index f7f8a227ecbca12d3127ba5bbefb224bf0455a88..54f550613d72f2a8a2ecb5eba5557abec7d66702 100644 (file)
@@ -13,7 +13,7 @@ namespace AnyP
 {
 
 /**
- * Set of 'mode' flags defining types of trafic which can be received.
+ * Set of 'mode' flags defining types of traffic which can be received.
  *
  * Use to determine the processing steps which need to be applied
  * to this traffic under any special circumstances which may apply.
index 834b8e47cdd83518a032bad1fe04226dcb951b19..083408113a028525409b5f156c7a568bd5d8f35c 100644 (file)
@@ -276,7 +276,7 @@ AnyP::Uri::parse(const HttpRequestMethod& method, const SBuf &rawUrl)
             src = url;
             i = 0;
 
-            /* Then everything until first /; thats host (and port; which we'll look for here later) */
+            /* Then everything until first /; that's host (and port; which we'll look for here later) */
             // bug 1881: If we don't get a "/" then we imply it was there
             // bug 3074: We could just be given a "?" or "#". These also imply "/"
             // bug 3233: whitespace is also a hostname delimiter.
@@ -300,7 +300,7 @@ AnyP::Uri::parse(const HttpRequestMethod& method, const SBuf &rawUrl)
             } else {
                 dst = urlpath;
             }
-            /* Then everything from / (inclusive) until \r\n or \0 - thats urlpath */
+            /* Then everything from / (inclusive) until \r\n or \0 - that's urlpath */
             for (; i < l && *src != '\r' && *src != '\n' && *src != '\0'; ++i, ++src, ++dst) {
                 *dst = *src;
             }
@@ -821,7 +821,7 @@ urlCheckRequest(const HttpRequest * r)
     /* protocol "independent" methods
      *
      * actually these methods are specific to HTTP:
-     * they are methods we recieve on our HTTP port,
+     * they are methods we receive on our HTTP port,
      * and if we had a FTP listener would not be relevant
      * there.
      *
@@ -896,7 +896,7 @@ urlCheckRequest(const HttpRequest * r)
  *      Skip any '/' after the colon
  *      Copy the next SQUID_MAXHOSTNAMELEN bytes to host[]
  *      Look for an ending '/' or ':' and terminate
- *      Look for login info preceeded by '@'
+ *      Look for login info preceded by '@'
  */
 
 class URLHostName
index a3f6a4e1e5f5bfdb5a7681fe2586c47e2dfbe35a..a017ca41d87ceb621a4e7b42d4fbcc819ee87cb9 100644 (file)
@@ -130,7 +130,7 @@ public:
     String keyExtrasLine;  ///< The format of the request to the auth helper
     Format::Format *keyExtras = nullptr; ///< The compiled request format
     int keep_alive = 1; ///< whether to close the connection on auth challenges. default: on
-    int utf8 = 0; ///< wheter to accept UTF-8 characterset instead of ASCII. default: off
+    int utf8 = 0; ///< whether to accept UTF-8 characterset instead of ASCII. default: off
 
 protected:
     /**
index c87794528de00e561625c5f5cd68beb1351344d7..087cd0ee33478fe88293da6ede5ad1082ad1fac1 100644 (file)
@@ -238,7 +238,7 @@ Auth::User::BuildUserKey(const char *username, const char *realm)
 }
 
 /**
- * Dump the username cache statictics for viewing...
+ * Dump the username cache statistics for viewing...
  */
 void
 Auth::User::CredentialsCacheStats(StoreEntry *output)
index a921feb4e44c281168c02f7d4d0620b39327b9c6..2ba53e17b975f52352978bcb93a12efdda318f4b 100644 (file)
@@ -240,7 +240,7 @@ authTryGetUser(Auth::UserRequest::Pointer auth_user_request, ConnStateData * con
 
     // attach the credential notes from helper to the transaction
     if (request != NULL && res != NULL && res->user() != NULL) {
-        // XXX: we have no access to the transaction / AccessLogEntry so cant SyncNotes().
+        // XXX: we have no access to the transaction / AccessLogEntry so can't SyncNotes().
         // workaround by using anything already set in HttpRequest
         // OR use new and rely on a later Sync copying these to AccessLogEntry
 
@@ -283,7 +283,7 @@ Auth::UserRequest::authenticate(Auth::UserRequest::Pointer * auth_user_request,
      * a note on proxy_auth logix here:
      * proxy_auth==NULL -> unauthenticated request || already
      * authenticated connection so we test for an authenticated
-     * connection when we recieve no authentication header.
+     * connection when we receive no authentication header.
      */
 
     /* a) can we find other credentials to use? and b) are they logged in already? */
index d4b7a8728101ecf664e937c0a642c5cb7f36b277..8a5312e01e8a40e9b852ae64c9c7a3cc103c36ed 100644 (file)
@@ -150,7 +150,7 @@ public:
      * Credentials may be found in one of the following locations (listed by order of preference):
      * - the source passed as parameter aUR
      * - cached in the HttpRequest parameter from a previous authentication of this request
-     * - cached in the ConnStateData paremeter from a previous authentication of this connection
+     * - cached in the ConnStateData parameter from a previous authentication of this connection
      *   (only applies to some situations. ie NTLM, Negotiate, Kerberos auth schemes,
      *    or decrypted SSL requests from inside an authenticated CONNECT tunnel)
      * - cached in the user credentials cache from a previous authentication of the same credentials
@@ -181,10 +181,10 @@ public:
 
     char const * denyMessage(char const * const default_message = NULL) const;
 
-    /** Possibly overrideable in future */
+    /** Possibly overridable in future */
     void setDenyMessage(char const *);
 
-    /** Possibly overrideable in future */
+    /** Possibly overridable in future */
     char const * getDenyMessage() const;
 
     /**
index f58b356475d388ca82b76c62cda15a216e94816e..c9d6b1a9f920e559e2ea2537345cd6e0fe8e86b3 100644 (file)
@@ -36,7 +36,7 @@
  */
 
 /*
- * util.c   Miscellanous generic functions.
+ * util.c   Miscellaneous generic functions.
  *
  */
 
index df245bb75bb78234123a075b575e39144e19620e..64b4e7c184ae54acf8e6604e9a85e9232a85f1d0 100644 (file)
@@ -51,7 +51,7 @@
 char Default_NTDomain[DNLEN+1] = NTV_DEFAULT_DOMAIN;
 const char * errormsg;
 
-const char NTV_SERVER_ERROR_MSG[] = "Internal server errror";
+const char NTV_SERVER_ERROR_MSG[] = "Internal server error";
 const char NTV_GROUP_ERROR_MSG[] = "User not allowed to use this cache";
 const char NTV_LOGON_ERROR_MSG[] = "No such user or wrong password";
 const char NTV_VALID_DOMAIN_SEPARATOR[] = "\\/";
index 4fc58f5a4d5cc128a891ab6953e8c8e4a3195491..b65f6d79c0f3dd6cabb15dc6150550c3697b956f 100644 (file)
@@ -63,7 +63,7 @@ passwd_auth(char *user, char *passwd)
         if (!crypted || strcmp(pwd->pw_passwd, crypted)) {
             return 2;       /* Wrong password */
         } else {
-            return 1;       /* Authentication Sucessful */
+            return 1;       /* Authentication Successful */
         }
     }
 }
@@ -81,7 +81,7 @@ shadow_auth(char *user, char *passwd)
         if (!crypted || strcmp(pwd->sp_pwdp, crypted)) {
             return 2;       /* Wrong password */
         } else {
-            return 1;       /* Authentication Sucessful */
+            return 1;       /* Authentication Successful */
         }
     }
 }
index 815afbe901897816ebcaa8b006f95f224ba8b88e..ff51c2e3e4b6561f2ef81205c6336279b7876491 100644 (file)
@@ -156,7 +156,7 @@ authenticateDigestNonceNew(void)
      * that a given nonce applies to only one user (barring attacks or
      * really bad timing with expiry and creation).  Using a random
      * component in the nonce allows us to loop to find a unique nonce.
-     * We use H(nonce_data) so the nonce is meaningless to the reciever.
+     * We use H(nonce_data) so the nonce is meaningless to the receiver.
      * So our nonce looks like hex(H(timestamp,randomdata))
      * And even if our randomness is not very random we don't really care
      * - the timestamp also guarantees local uniqueness in the input to
@@ -1034,7 +1034,7 @@ Auth::Digest::Config::decode(char const *proxy_auth, const HttpRequest *request,
 
     /* the method we'll check at the authenticate step as well */
 
-    /* we don't send or parse opaques. Ok so we're flexable ... */
+    /* we don't send or parse opaques. Ok so we're flexible ... */
 
     /* find the user */
     Auth::Digest::User *digest_user;
index ca8f0744c3346edd1b63003a5efb56a49072c04f..a983a19fe3fd42b9698a9e56f926b4ddf8005c80 100644 (file)
@@ -234,7 +234,7 @@ retrysrch:
 #endif
                     fprintf(stderr, PROGRAM_NAME " WARNING, LDAP search error, trying to recover'%s'\n", ldap_err2string(rc));
                     ldap_msgfree(res);
-                    /* try to connect to the LDAP server agin, maybe my persisten conexion failed. */
+                    /* try to connect to the LDAP server again, maybe my persistent conexion failed. */
                     if (!retry) {
                         ++retry;
                         ldap_unbind(ld);
@@ -288,7 +288,7 @@ retrydnattr:
             return password;
         } else {
             fprintf(stderr, PROGRAM_NAME " WARNING, LDAP error '%s'\n", ldap_err2string(rc));
-            /* try to connect to the LDAP server agin, maybe my persisten conexion failed. */
+            /* try to connect to the LDAP server again, maybe my persistent conexion failed. */
             if (!retry) {
                 ++retry;
                 ldap_unbind(ld);
index f09fb754655921ae5e6f43e4c3730d8382c03ada..2709feecf24385cb4aac7c9744b773401cbe1878 100644 (file)
@@ -236,7 +236,7 @@ retrysrch:
 #endif
                     fprintf(stderr, PROGRAM_NAME " WARNING, LDAP search error, trying to recover'%s'\n", ldap_err2string(rc));
                     ldap_msgfree(res);
-                    /* try to connect to the LDAP server agin, maybe my persisten conexion failed. */
+                    /* try to connect to the LDAP server again, maybe my persistent conexion failed. */
                     if (!retry) {
                         ++retry;
                         ldap_unbind(ld);
@@ -314,7 +314,7 @@ retrydnattr:
             return password;
         } else {
             fprintf(stderr, PROGRAM_NAME " WARNING, LDAP error '%s'\n", ldap_err2string(rc));
-            /* try to connect to the LDAP server agin, maybe my persisten conexion failed. */
+            /* try to connect to the LDAP server again, maybe my persistent conexion failed. */
             if (!retry) {
                 ++retry;
                 ldap_unbind(ld);
@@ -607,7 +607,7 @@ LDAPArguments(int argc, char **argv)
     if (!userbasedn || !((passattr != NULL) || (edir_universal_passwd && usersearchfilter && version == LDAP_VERSION3 && use_tls))) {
         fprintf(stderr, "Usage: " PROGRAM_NAME " -b basedn -f filter [options] ldap_server_name\n\n");
         fprintf(stderr, "\t-A password attribute(REQUIRED)\t\tUser attribute that contains the password\n");
-        fprintf(stderr, "\t-l password realm delimiter(REQUIRED)\tCharater(s) that devides the password attribute\n\t\t\t\t\t\tin realm and password tokens, default ':' realm:password\n");
+        fprintf(stderr, "\t-l password realm delimiter(REQUIRED)\tCharater(s) that divides the password attribute\n\t\t\t\t\t\tin realm and password tokens, default ':' realm:password\n");
         fprintf(stderr, "\t-b basedn (REQUIRED)\t\t\tbase dn under where to search for users\n");
         fprintf(stderr, "\t-e Encrypted passwords(REQUIRED)\tPassword are stored encrypted using HHA1\n");
         fprintf(stderr, "\t-F filter\t\t\t\tuser search filter pattern. %%s = login\n");
index 7f2e1973b4d9af97be285b3afef832d74cca5f12..c4a9ebdaed8cb3d18814e4f03dabd2ef9e6057cd 100644 (file)
@@ -157,7 +157,7 @@ init_challenge(char *domain, char *domain_controller)
         handle = NULL;
         return 2;
     }
-    if (handle->Security == 0) {    /* share-level security, unuseable */
+    if (handle->Security == 0) {    /* share-level security, unusable */
         debug("SMB Server uses share-level security .. we need user security.\n");
         SMB_Discon(handle, 0);
         handle = NULL;
@@ -172,7 +172,7 @@ init_challenge(char *domain, char *domain_controller)
 const char *
 make_challenge(char *domain, char *domain_controller)
 {
-    /* trying to circumvent some strange problem wih pointers in SMBLib */
+    /* trying to circumvent some strange problem with pointers in SMBLib */
     /* Ugly as hell, but the lib is going to be dropped... */
     strncpy(my_domain, domain, sizeof(my_domain)-1);
     my_domain[sizeof(my_domain)-1] = '\0';
@@ -567,7 +567,7 @@ manage_request()
                 }
                 /* there was an error. We have two errno's to look at.
                  * libntlmssp's erno is insufficient, we'll have to look at
-                 * the actual SMB library error codes, to acually figure
+                 * the actual SMB library error codes, to actually figure
                  * out what's happening. The thing has braindamaged interfacess..*/
                 smblib_err = SMB_Get_Last_Error();
                 smb_errorclass = SMBlib_Error_Class(SMB_Get_Last_SMB_Err());
index 6a581b728eeb9312ca8e9d0ff413e420505db0de..64a5f53e59515230cf87dcf5d53feb9dc4f4fc95 100644 (file)
@@ -248,7 +248,7 @@ char * GetDomainName(void)
                 debug("LsaQueryInformationPolicy Error: %ld\n", status);
             } else  {
 
-                /* Get name in useable format */
+                /* Get name in usable format */
                 DomainName = AllocStrFromLSAStr(ppdiDomainInfo->Name);
 
                 /*
@@ -460,7 +460,7 @@ manage_request()
         char *c = static_cast<char*>(memchr(buf, '\n', sizeof(buf)));
         if (c) {
             if (oversized) {
-                helperfail("messge=\"illegal request received\"");
+                helperfail("message=\"illegal request received\"");
                 fprintf(stderr, "Illegal request received: '%s'\n", buf);
                 return 1;
             }
index fabaa783e7d473b7d12049bf09dcccfb10d5e39e..7bf5ad8724eb798f2139e366c4fddfb2d893869e 100644 (file)
@@ -244,7 +244,7 @@ Auth::Ntlm::UserRequest::authenticate(HttpRequest * aRequest, ConnStateData * co
         break;
 
     case Auth::Ok:
-        fatal("Auth::Ntlm::UserRequest::authenticate: unexpect auth state DONE! Report a bug to the squid developers.\n");
+        fatal("Auth::Ntlm::UserRequest::authenticate: unexpected auth state DONE! Report a bug to the squid developers.\n");
         break;
 
     case Auth::Failed:
index 73f18e107adb031bcdcafae267c956e74de95920..b0211ed4219827ed8d43dd77cfa27857c3a54636 100644 (file)
@@ -91,7 +91,7 @@ protected:
     AsyncCall::Pointer theNext; // used exclusively by AsyncCallQueue
 
 private:
-    const char *isCanceled; // set to the cancelation reason by cancel()
+    const char *isCanceled; // set to the cancellation reason by cancel()
 
     // not implemented to prevent nil calls from being passed around and unknowingly scheduled, for now.
     AsyncCall();
index 01498256aebe5e0dddb19f3c552c4671f151b3dd..bf924eb4b1da3a08c6edb17705a89fa69f23e6ba 100644 (file)
@@ -104,7 +104,7 @@ bool AsyncJob::canBeCalled(AsyncCall &call) const
         // This may happen when we have bugs or some module is not calling
         // us asynchronously (comm used to do that).
         debugs(93, 5, HERE << inCall << " is in progress; " <<
-               call << " canot reenter the job.");
+               call << " cannot reenter the job.");
         return call.cancel("reentrant job call");
     }
 
index 77785555dcacc4ff9f3b92cc5e9b387e5dfd38a1..5a7159f871769143338c1bab24f7b9e6e5f18789 100644 (file)
@@ -112,7 +112,7 @@ public:
     static const CharacterSet ETAGC;
 
     // HTTP character sets, RFC 7235
-    // token68 (internal charaters only, excludes '=' terminator)
+    // token68 (internal characters only, excludes '=' terminator)
     static const CharacterSet TOKEN68C;
 
 private:
index b632a9af4354b067415848e7cdccd693fc054f39..42bc102144ef041704dd41466a538dc202aa5968 100644 (file)
@@ -42,7 +42,7 @@ public:
  * A subscription may be passed to multiple producers.
  *
  * Call_ must have a copy constructor.
- * A pointer to Call_ must be convertable to AsyncCall::Pointer
+ * A pointer to Call_ must be convertible to AsyncCall::Pointer
  */
 template<class Call_>
 class CallSubscription: public Subscription
index 6d168721c059bc9d341260cc6b25561f9ccb995f..c071837fb8efb563cbf6571e17e0fc48d13b9de7 100644 (file)
@@ -939,7 +939,7 @@ configDoConfigure(void)
     }
 
     // prevent infinite fetch loops in the request parser
-    // due to buffer full but not enough data recived to finish parse
+    // due to buffer full but not enough data received to finish parse
     if (Config.maxRequestBufferSize <= Config.maxRequestHeaderSize) {
         fatalf("Client request buffer of %u bytes cannot hold a request with %u bytes of headers." \
                " Change client_request_buffer_max or request_header_max_size limits.",
@@ -4710,7 +4710,7 @@ static void parse_sslproxy_ssl_bump(acl_access **ssl_bump)
         return;
     }
 
-    // if this is the first rule proccessed
+    // if this is the first rule processed
     if (*ssl_bump == NULL) {
         bumpCfgStyleLast = bcsNone;
         sslBumpCfgRr::lastDeprecatedRule = Ssl::bumpEnd;
index b0e768ca4f781e0cc14b9143c529660e05a26dd6..cb2bec03253e53647976f8d6a8cdffd2df4ca156 100644 (file)
 
  \subsection AsyncOpWithoutCBDATA Asynchronous operation without cbdata, showing why cbdata is needed
  \par
-   For a asyncronous operation with callback functions, the normal
+   For a asynchronous operation with callback functions, the normal
    sequence of events in programs NOT using cbdata is as follows:
 
  \code
     // initialization
     type_of_data our_data = new ...;
     ...
-    // Initiate a asyncronous operation, with our_data as callback_data
+    // Initiate a asynchronous operation, with our_data as callback_data
     fooOperationStart(bar, callback_func, our_data);
     ...
-    // The asyncronous operation completes and makes the callback
+    // The asynchronous operation completes and makes the callback
     callback_func(callback_data, ....);
     // Some time later we clean up our data
     delete our_data;
@@ -65,7 +65,7 @@
     // initialization
     type_of_data our_data = new ...;
     ...
-    // Initiate a asyncronous operation, with our_data as callback_data
+    // Initiate a asynchronous operation, with our_data as callback_data
     fooOperationStart(bar, callback_func, our_data);
     ...
     // ouch, something bad happened elsewhere.. try to cleanup
     // pending operations.
     delete our_data;
     ...
-    // The asyncronous operation completes and makes the callback
+    // The asynchronous operation completes and makes the callback
     callback_func(callback_data, ....);
     // CRASH, the memory pointer to by callback_data is no longer valid
     // at the time of the callback
  \endcode
 
- \subsection AsyncOpWithCBDATA Asyncronous operation with cbdata
+ \subsection AsyncOpWithCBDATA Asynchronous operation with cbdata
 
  \par
    The callback data allocator lets us do this in a uniform and
    safe manner.  The callback data allocator is used to allocate,
    track and free memory pool objects used during callback
-   operations.  Allocated memory is locked while the asyncronous
+   operations.  Allocated memory is locked while the asynchronous
    operation executes elsewhere, and is freed when the operation
    completes.  The normal sequence of events is:
 
     // initialization
     type_of_data our_data = new type_of_data;
     ...
-    // Initiate a asyncronous operation, with our_data as callback_data
+    // Initiate a asynchronous operation, with our_data as callback_data
     fooOperationStart(..., callback_func, our_data);
     ...
     // foo
     void *local_pointer = cbdataReference(callback_data);
     ....
-    // The asyncronous operation completes and makes the callback
+    // The asynchronous operation completes and makes the callback
     void *cbdata;
     if (cbdataReferenceValidDone(local_pointer, &amp;cbdata))
         callback_func(...., cbdata);
    With this scheme, nothing bad happens if delete gets called
    before fooOperantionComplete(...).
 
- \par   Initalization
+ \par   Initialization
  \code
     // initialization
     type_of_data our_data = new type_of_data;
     ...
-    // Initiate a asyncronous operation, with our_data as callback_data
+    // Initiate a asynchronous operation, with our_data as callback_data
     fooOperationStart(..., callback_func, our_data);
     ...
     // do some stuff with it
     // something bad happened elsewhere.. cleanup
     delete our_data;
     ....
-    // The asyncronous operation completes and makes the callback
+    // The asynchronous operation completes and makes the callback
     void *cbdata;
     if (cbdataReferenceValidDone(local_pointer, &amp;cbdata))
         // won't be called, as the data is no longer valid
index ebd7015819cc0a73e8c2035978bd0858a71d2ce5..1d0b734912e8b88158b95c293a018b7d95129dd8 100644 (file)
@@ -589,7 +589,7 @@ DOC_START
 
                The expanded key_extras value is added to the Squid credentials
                cache and, hence, will affect authentication. It can be used to
-               autenticate different users with identical user names (e.g.,
+               authenticate different users with identical user names (e.g.,
                when user authentication depends on http_port).
 
                Avoid adding frequently changing information to key_extras. For
@@ -923,7 +923,7 @@ DOC_START
                        (e.g., with %#DATA, spaces between arguments become
                        %20).
 
-       If SSL is enabled, the following formating codes become available:
+       If SSL is enabled, the following formatting codes become available:
 
          %USER_CERT            SSL User certificate in PEM format
          %USER_CERTCHAIN       SSL User certificate chain in PEM format
@@ -1180,7 +1180,7 @@ endif
          # regex matching on URL path [fast]
 
        acl aclname port 80 70 21 0-1024...   # destination TCP port [fast]
-                                             # ranges are alloed
+                                             # ranges are allowed
        acl aclname localport 3128 ...        # TCP port the client connected to [fast]
                                              # NP: for interception mode this is usually '80'
 
@@ -1214,7 +1214,7 @@ endif
          # use REQUIRED to accept any valid username.
          #
          # Will use proxy authentication in forward-proxy scenarios, and plain
-         # http authenticaiton in reverse-proxy scenarios
+         # http authentication in reverse-proxy scenarios
          #
          # NOTE: when a Proxy-Authentication header is sent but it is not
          # needed during ACL checking the username is NOT logged
@@ -3442,7 +3442,7 @@ DOC_START
                concurrency=
        
        The number of requests each certificate validator helper can handle in
-       parallel. A value of 0 indicates the certficate validator does not
+       parallel. A value of 0 indicates the certificate validator does not
        support concurrency. Defaults to 1.
        
        When this directive is set to a value >= 1 then the protocol
@@ -4192,7 +4192,7 @@ DOC_END
 NAME: cache_dir
 TYPE: cachedir
 DEFAULT: none
-DEFAULT_DOC: No disk cache. Store cache ojects only in memory.
+DEFAULT_DOC: No disk cache. Store cache objects only in memory.
 LOC: Config.cacheSwap
 DOC_START
        Format:
@@ -4479,11 +4479,11 @@ DOC_START
        near the low-water mark.
 
        As swap utilization increases towards the high-water mark set
-       by cache_swap_high object eviction becomes more agressive.
+       by cache_swap_high object eviction becomes more aggressive.
 
        The value difference in percentages between low- and high-water
        marks represent an eviction rate of 300 objects per second and
-       the rate continues to scale in agressiveness by multiples of
+       the rate continues to scale in aggressiveness by multiples of
        this above the high-water mark.
 
        Defaults are 90% and 95%. If you have a large cache, 5% could be
@@ -4507,11 +4507,11 @@ DOC_START
        maintain utilization near the low-water mark.
 
        As swap utilization increases towards this high-water mark object
-       eviction becomes more agressive.
+       eviction becomes more aggressive.
 
        The value difference in percentages between low- and high-water
        marks represent an eviction rate of 300 objects per second and
-       the rate continues to scale in agressiveness by multiples of
+       the rate continues to scale in aggressiveness by multiples of
        this above the high-water mark.
 
        Defaults are 90% and 95%. If you have a large cache, 5% could be
@@ -5584,7 +5584,7 @@ DOC_START
        straight to using PORT for IPv4 servers.
 
        Some devices are known to not handle this extension correctly and
-       may result in crashes. Devices which suport EPRT enough to fail
+       may result in crashes. Devices which support EPRT enough to fail
        cleanly will result in Squid attempting PORT anyway. This directive
        should only be disabled when EPRT results in device failures.
 
@@ -5736,7 +5736,7 @@ DOC_START
 
        Re-write creates a difference in the state held by the client
        and server. Possibly causing confusion when the server response
-       contains snippets of its view state. Embeded URLs, response
+       contains snippets of its view state. Embedded URLs, response
        and content Location headers, etc. are not re-written by this
        interface.
 
@@ -6183,7 +6183,7 @@ DEFAULT: 1 week
 DOC_START
        This option puts an upper limit on how stale content Squid
        will serve from the cache if cache validation fails.
-       Can be overriden by the refresh_pattern max-stale option.
+       Can be overridden by the refresh_pattern max-stale option.
 DOC_END
 
 NAME: refresh_pattern
@@ -8754,7 +8754,7 @@ DOC_START
            you may also specify them by your custom file name:
            Example: deny_info ERR_CUSTOM_ACCESS_DENIED bad_guys
 
-       By defaut Squid will send "403 Forbidden". A different 4xx or 5xx
+       By default Squid will send "403 Forbidden". A different 4xx or 5xx
        may be specified by prefixing the file name with the code and a colon.
        e.g. 404:ERR_CUSTOM_ACCESS_DENIED
 
@@ -9054,7 +9054,7 @@ DOC_START
 
        Requires client_db to be enabled (the default).
 
-       WARNING: This may noticably slow down traffic received via external proxies
+       WARNING: This may noticeably slow down traffic received via external proxies
        or NAT devices and cause them to rebound error messages back to their clients.
 DOC_END
 
@@ -9211,7 +9211,7 @@ DOC_START
 
        Activation of the Partial Content extension is negotiated with each
        ICAP service during OPTIONS exchange. Most ICAP servers should handle
-       negotation correctly even if they do not support the extension, but
+       negotiation correctly even if they do not support the extension, but
        some might fail. To disable Partial Content support for all ICAP
        services and to avoid any negotiation, set this option to "off".
 
index 17ad74d6a65b36caaa1d0528fa311293c19ba141..0aef387827dc0c8f3306355d7de4fb2f8adcc898 100644 (file)
@@ -24,7 +24,7 @@
  *
  \par
  * Each pipe node has a data push function, and a data request function.
- * This limits flexability - the data flow is no longer assembled at each
+ * This limits flexibility - the data flow is no longer assembled at each
  * step.
  *
  \par
@@ -61,7 +61,7 @@
  \par
  * No data member may hold a reference to it's stream node.
  * The stream guarantees that DETACH will be called before
- * freeing the node, alowing data members to cleanup.
+ * freeing the node, allowing data members to cleanup.
  *
  \par
  * If a node's data holds a reference to something that needs to
index 407722bce99409e89b0b886525889c4e7263e3be..18bde464eeabf5457d8e6d1e032992d03dc70efe 100644 (file)
@@ -144,7 +144,7 @@ void clientStreamDetach(clientStreamNode *thisObject, ClientHttpRequest *http);
 /**
  \ingroup ClientStreamAPI
  *
- * Detachs the tail of the stream. CURRENTLY DOES NOT clean up the tail node data -
+ * Detaches the tail of the stream. CURRENTLY DOES NOT clean up the tail node data -
  * this must be done separately. Thus Abort may ONLY be called by the tail node.
  *
  \param thisObject  'this' reference for the client stream
index 445417a960df3658700de85a251ec2ef31a2b009..94f4e1c3cd14eb62fb39b860039f71f7200f36f1 100644 (file)
@@ -169,7 +169,7 @@ public:
 private:
     AnyP::PortCfgPointer portCfg;   ///< from HttpPortList
     Ipc::FdNoteId portTypeNote;    ///< Type of IPC socket being opened
-    Subscription::Pointer sub; ///< The handler to be subscribed for this connetion listener
+    Subscription::Pointer sub; ///< The handler to be subscribed for this connection listener
 };
 
 static void clientListenerConnectionOpened(AnyP::PortCfgPointer &s, const Ipc::FdNoteId portTypeNote, const Subscription::Pointer &sub);
@@ -1790,7 +1790,7 @@ ConnStateData::concurrentRequestQueueFilled() const
 #endif
     const int concurrentRequestLimit = pipelinePrefetchMax() + 1 + internalRequest;
 
-    // when queue filled already we cant add more.
+    // when queue filled already we can't add more.
     if (existingRequestCount >= concurrentRequestLimit) {
         debugs(33, 3, clientConnection << " max concurrent requests reached (" << concurrentRequestLimit << ")");
         debugs(33, 5, clientConnection << " deferring new request until one is done");
@@ -1833,7 +1833,7 @@ ConnStateData::proxyProtocolError(const char *msg)
     if (msg) {
         // This is important to know, but maybe not so much that flooding the log is okay.
 #if QUIET_PROXY_PROTOCOL
-        // display the first of every 32 occurances at level 1, the others at level 2.
+        // display the first of every 32 occurrences at level 1, the others at level 2.
         static uint8_t hide = 0;
         debugs(33, (hide++ % 32 == 0 ? DBG_IMPORTANT : 2), msg << " from " << clientConnection);
 #else
@@ -2287,7 +2287,7 @@ ConnStateData::whenClientIpKnown()
     if (pools.size()) {
         ACLFilledChecklist ch(NULL, NULL, NULL);
 
-        // TODO: we check early to limit error response bandwith but we
+        // TODO: we check early to limit error response bandwidth but we
         // should recheck when we can honor delay_pool_uses_indirect
         // TODO: we should also pass the port details for myportname here.
         ch.src_addr = clientConnection->remote;
@@ -2696,7 +2696,7 @@ ConnStateData::sslCrtdHandleReply(const Helper::Reply &reply)
             if (reply.result != Helper::Okay) {
                 debugs(33, 5, "Certificate for " << tlsConnectHostOrIp << " cannot be generated. ssl_crtd response: " << reply_message.getBody());
             } else {
-                debugs(33, 5, "Certificate for " << tlsConnectHostOrIp << " was successfully recieved from ssl_crtd");
+                debugs(33, 5, "Certificate for " << tlsConnectHostOrIp << " was successfully received from ssl_crtd");
                 if (sslServerBump && (sslServerBump->act.step1 == Ssl::bumpPeek || sslServerBump->act.step1 == Ssl::bumpStare)) {
                     doPeekAndSpliceStep();
                     auto ssl = fd_table[clientConnection->fd].ssl.get();
@@ -3187,7 +3187,7 @@ ConnStateData::doPeekAndSpliceStep()
     assert(b);
     Ssl::ClientBio *bio = static_cast<Ssl::ClientBio *>(BIO_get_data(b));
 
-    debugs(33, 5, "PeekAndSplice mode, proceed with client negotiation. Currrent state:" << SSL_state_string_long(ssl));
+    debugs(33, 5, "PeekAndSplice mode, proceed with client negotiation. Current state:" << SSL_state_string_long(ssl));
     bio->hold(false);
 
     Comm::SetSelect(clientConnection->fd, COMM_SELECT_WRITE, clientNegotiateSSL, this, 0);
index cfa9ec08cffe013201d24837f329a68ef3143675..61a90ac07c951ec332288d16b70ca68a45428eb5 100644 (file)
@@ -241,7 +241,7 @@ public:
 
     /// Callback function. It is called when squid receive message from ssl_crtd.
     static void sslCrtdHandleReplyWrapper(void *data, const Helper::Reply &reply);
-    /// Proccess response from ssl_crtd.
+    /// Process response from ssl_crtd.
     void sslCrtdHandleReply(const Helper::Reply &reply);
 
     void switchToHttps(ClientHttpRequest *, Ssl::BumpMode bumpServerMode);
index 4414c3a83e70edd9ac420d3ea71bee0007595cd7..e1e8fce2fbd03131de35fcb8f330ce664d409fde 100644 (file)
@@ -560,11 +560,11 @@ clientReplyContext::cacheHit(StoreIOBuffer result)
         return;
     }
 
-    // The previously identified hit suddenly became unsharable!
+    // The previously identified hit suddenly became unshareable!
     // This is common for collapsed forwarding slaves but might also
     // happen to regular hits because we are called asynchronously.
     if (!e->mayStartHitting()) {
-        debugs(88, 3, "unsharable " << *e << ". MISS");
+        debugs(88, 3, "unshareable " << *e << ". MISS");
         http->logType.update(LOG_TCP_MISS);
         processMiss();
         return;
@@ -1345,7 +1345,7 @@ clientReplyContext::replyStatus()
 /* Responses with no body will not have a content-type header,
  * which breaks the rep_mime_type acl, which
  * coincidentally, is the most common acl for reply access lists.
- * A better long term fix for this is to allow acl matchs on the various
+ * A better long term fix for this is to allow acl matches on the various
  * status codes, and then supply a default ruleset that puts these
  * codes before any user defines access entries. That way the user
  * can choose to block these responses where appropriate, but won't get
@@ -1461,7 +1461,7 @@ clientReplyContext::buildReplyHeader()
             /* Signal old objects.  NB: rfc 2616 is not clear,
              * by implication, on whether we should do this to all
              * responses, or only cache hits.
-             * 14.46 states it ONLY applys for heuristically caclulated
+             * 14.46 states it ONLY applies for heuristically calculated
              * freshness values, 13.2.4 doesn't specify the same limitation.
              * We interpret RFC 2616 under the combination.
              */
@@ -1904,7 +1904,7 @@ clientReplyContext::SendMoreData(void *data, StoreIOBuffer result)
 void
 clientReplyContext::makeThisHead()
 {
-    /* At least, I think thats what this does */
+    /* At least, I think that's what this does */
     dlinkDelete(&http->active, &ClientActiveRequests);
     dlinkAdd(http, &http->active, &ClientActiveRequests);
 }
@@ -2290,7 +2290,7 @@ clientReplyContext::createStoreEntry(const HttpRequestMethod& m, RequestFlags re
 
     StoreEntry *e = storeCreateEntry(storeId(), http->log_uri, reqFlags, m);
 
-    // Make entry collapsable ASAP, to increase collapsing chances for others,
+    // Make entry collapsible ASAP, to increase collapsing chances for others,
     // TODO: every must-revalidate and similar request MUST reach the origin,
     // but do we have to prohibit others from collapsing on that request?
     if (reqFlags.cachable &&
@@ -2322,7 +2322,7 @@ clientReplyContext::createStoreEntry(const HttpRequestMethod& m, RequestFlags re
     /* So, we mark the store logic as complete */
     flags.storelogiccomplete = 1;
 
-    /* and get the caller to request a read, from whereever they are */
+    /* and get the caller to request a read, from wherever they are */
     /* NOTE: after ANY data flows down the pipe, even one step,
      * this function CAN NOT be used to manage errors
      */
index 16b24e45205f352db63ae0f48d88be531204f77f..0964a69139b42411e554c83e79d6456847f1ca16 100644 (file)
@@ -316,7 +316,7 @@ ClientHttpRequest::~ClientHttpRequest()
  * \retval 0     success
  * \retval -1    failure
  *
- * TODO: Pass in the buffers to be used in the inital Read request, as they are
+ * TODO: Pass in the buffers to be used in the initial Read request, as they are
  * determined by the user
  */
 int
@@ -909,7 +909,7 @@ clientStoreIdAccessCheckDone(Acl::Answer answer, void *data)
 }
 
 /**
- * Start locating an alternative storeage ID string (if any) from admin
+ * Start locating an alternative storage ID string (if any) from admin
  * configured helper program. This is an asynchronous operation terminating in
  * ClientRequestContext::clientStoreIdDone() when completed.
  */
@@ -1298,7 +1298,7 @@ ClientRequestContext::clientRedirectDone(const Helper::Reply &reply)
     break;
     }
 
-    /* FIXME PIPELINE: This is innacurate during pipelining */
+    /* FIXME PIPELINE: This is inaccurate during pipelining */
 
     if (http->getConn() != NULL && Comm::IsConnOpen(http->getConn()->clientConnection))
         fd_note(http->getConn()->clientConnection->fd, http->uri);
index 2a65f08d0ebad3c1049078d74f8adc05b534b1ec..722aa0f44e6b54227b5ccbd8791ea6787b54fc28 100644 (file)
@@ -974,7 +974,7 @@ Client::adjustBodyBytesRead(const int64_t delta)
 
     bodyBytesRead += delta; // supports negative and zero deltas
 
-    // check for overflows ("infinite" response?) and undeflows (a bug)
+    // check for overflows ("infinite" response?) and underflows (a bug)
     Must(bodyBytesRead >= 0);
 }
 
index fdb32eb97a2bfe7a5c3e4298cd0b20e8d7f1f430..05a3ee7151435cc88d1eac85fae375037d190efc 100644 (file)
@@ -1009,7 +1009,7 @@ Ftp::Client::dataComplete()
     /* AYJ: 2011-01-13: Bug 2581.
      * 226 status is possibly waiting in the ctrl buffer.
      * The connection will hang if we DONT send buffered_ok.
-     * This happens on all transfers which can be completly sent by the
+     * This happens on all transfers which can be completely sent by the
      * server before the 150 started status message is read in by Squid.
      * ie all transfers of about one packet hang.
      */
index c03501167277ab38faa86346fd07f438e48673a5..fdca3b7293b79df6f60f783b561fbe075b58db51 100644 (file)
@@ -1044,7 +1044,7 @@ Ftp::Gateway::checkAuth(const HttpHeader * req_hdr)
     /* Test URL login syntax. Overrides any headers received. */
     loginParser(request->url.userInfo(), true);
 
-    /* name is missing. thats fatal. */
+    /* name is missing. that's fatal. */
     if (!user[0])
         fatal("FTP login parsing destroyed username info");
 
@@ -2412,7 +2412,7 @@ ftpFail(Ftp::Gateway *ftpState)
            "mdtm=" << ftpState->mdtm << ", size=" << ftpState->theSize <<
            "slashhack=" << (slashHack? "T":"F"));
 
-    /* Try the / hack to support "Netscape" FTP URL's for retreiving files */
+    /* Try the / hack to support "Netscape" FTP URL's for retrieving files */
     if (!ftpState->flags.isdir &&   /* Not a directory */
             !ftpState->flags.try_slash_hack && !slashHack && /* Not doing slash hack */
             ftpState->mdtm <= 0 && ftpState->theSize < 0) { /* Not known as a file */
index 265211bf237c8a00bf1394c1ddd80294384fd6b7..01676d0642a44ac660d03617b970710532c75fe3 100644 (file)
@@ -47,7 +47,7 @@ public:
 
 std::ostream &operator <<(std::ostream &, const Http::TunnelerAnswer &);
 
-} // namepace Http
+} // namespace Http
 
 #endif /* SQUID_SRC_CLIENTS_HTTP_TUNNELERANSWER_H */
 
index 804cf10ad2bef0ea40de4bf853ed02a23e4c9bde..72a1cb1311e31f32472f2390dcd24d5c8bf49e59 100644 (file)
@@ -631,7 +631,7 @@ comm_connect_addr(int sock, const Ip::Address &address)
      * This case is presently handled here as it's both a known case and it's
      * uncertain what error will be returned by the IPv6 stack in such case. It's
      * possible this will also be handled by the errno checks below after connect()
-     * but needs carefull cross-platform verification, and verifying the address
+     * but needs careful cross-platform verification, and verifying the address
      * condition here is simple.
      */
     if (!F->local_addr.isIPv4() && address.isIPv4()) {
@@ -1762,7 +1762,7 @@ DeferredReadManager::delayRead(DeferredRead const &aRead)
                                            "DeferredReadManager::CloseHandler",
                                            CommCloseCbPtrFun(&CloseHandler, temp));
     comm_add_close_handler(aRead.theRead.conn->fd, closer);
-    temp->element.closer = closer; // remeber so that we can cancel
+    temp->element.closer = closer; // remember so that we can cancel
 }
 
 void
index 303dd16be05eb4040580aba838f15e6fff0113fb..380d74ed8262721e0c893e9f5fca52e91f34cdc3 100644 (file)
@@ -49,7 +49,7 @@ private:
     std::deque<TcpAcceptor::Pointer> deferred_;
 };
 
-}; // namepace Comm
+}; // namespace Comm
 
 #endif /* _SQUID_SRC_COMM_ACCEPT_LIMITER_H */
 
index 96200be1bfbb8d3c6da012cba1e16279315678dc..48ed1763208438e95e345c6334a17e2a9545b910 100644 (file)
@@ -259,7 +259,7 @@ Comm::ConnOpener::createFd()
 {
     Must(temporaryFd_ < 0);
 
-    // our initators signal abort by cancelling their callbacks
+    // our initiators signal abort by cancelling their callbacks
     if (callback_ == NULL || callback_->canceled())
         return false;
 
index 4f97f32688752694f7bb018c59042fbc690f5639..b6a2973aff4f7bebd61a7a70911db788205cc1ee 100644 (file)
@@ -54,7 +54,7 @@ namespace Comm
 /**
  * Store data about the physical and logical attributes of a connection.
  *
- * Some link state can be infered from the data, however this is not an
+ * Some link state can be inferred from the data, however this is not an
  * object for state data. But a semantic equivalent for FD with easily
  * accessible cached properties not requiring repeated complex lookups.
  *
index eec4ff6cfa013a1df98e23b02c116911b349ea5c..edaec0a21b872b397b6725c261dfd3c50ae1223e 100644 (file)
@@ -51,7 +51,7 @@ public:
     /// Actively cancel the given callback
     void cancel(const char *reason);
 
-    /// finish the IO operation imediately and schedule the callback with the current state.
+    /// finish the IO operation immediately and schedule the callback with the current state.
     void finish(Comm::Flag code, int xerrn);
 
 private:
index 0ac4e56235d4911113c7347b09331fa08d0c0e95..7c379adcdd874378d4795074eb19a1873ce166d2 100644 (file)
@@ -71,7 +71,7 @@ static void comm_poll_dns_incoming(void);
  * The variables 'incoming_icp_interval' and 'incoming_http_interval'
  * determine how many normal I/O events to process before checking
  * incoming sockets again.  Note we store the incoming_interval
- * multipled by a factor of (2^INCOMING_FACTOR) to have some
+ * multiplied by a factor of (2^INCOMING_FACTOR) to have some
  * pseudo-floating point precision.
  *
  * The variable 'udp_io_events' and 'tcp_io_events' counts how many normal
index a2278401458f8702e0ec0922938424a141ef9d45..0b8b61c6ff9384f88d4face9648b120e94f19819 100644 (file)
@@ -70,7 +70,7 @@ static int nwritefds;
  * The variables 'incoming_udp_interval' and 'incoming_tcp_interval'
  * determine how many normal I/O events to process before checking
  * incoming sockets again.  Note we store the incoming_interval
- * multipled by a factor of (2^INCOMING_FACTOR) to have some
+ * multiplied by a factor of (2^INCOMING_FACTOR) to have some
  * pseudo-floating point precision.
  *
  * The variable 'udp_io_events' and 'tcp_io_events' counts how many normal
index 0942e913dbbde6cc6ce91a1185d120d26570b4ce..8bf30f37b28165688c2d700ec54eb6c5d99d0eff 100644 (file)
@@ -64,7 +64,7 @@ static int nwritefds;
  * The variables 'incoming_udp_interval' and 'incoming_tcp_interval'
  * determine how many normal I/O events to process before checking
  * incoming sockets again.  Note we store the incoming_interval
- * multipled by a factor of (2^INCOMING_FACTOR) to have some
+ * multiplied by a factor of (2^INCOMING_FACTOR) to have some
  * pseudo-floating point precision.
  *
  * The variable 'udp_io_events' and 'tcp_io_events' counts how many normal
index 00babf3970dc7bd4fbdcb3c6d2a2072bba7b325f..737b3c5b8f0c5526ac10f679bae412af45a801db 100644 (file)
@@ -209,7 +209,7 @@ rfc1035HeaderUnpack(const char *buf, size_t sz, unsigned int *off, rfc1035_messa
      * all zero as per RFC 1035.  If not the message should be
      * rejected.
      * NO! RFCs say ignore inbound reserved, they may be used in future.
-     *  NEW messages need to be set 0, thats all.
+     *  NEW messages need to be set 0, that's all.
      */
     h->rcode = t & 0x0F;
     memcpy(&s, buf + (*off), sizeof(s));
index 3ce78ad56ba7c9d897ab7a84fbb0eaf0ffd4994d..bef99b76effe390a92fef31d71fddd35779bbf57 100644 (file)
@@ -40,7 +40,7 @@
  *
  * IPv4 equivalents are taken care of by the RFC1035 library.
  * Where one protocol lookup must be followed by another, the caller
- * is resposible for the order and handling of the lookups.
+ * is responsible for the order and handling of the lookups.
  *
  * KNOWN BUGS:
  *
index 849a987c5d222401aecf187396c0f9e00ec54c1d..d18c4bc771e1ebb907d49e753b1e374d6b006b73 100644 (file)
@@ -1196,7 +1196,7 @@ idnsGrokReply(const char *buf, size_t sz, int /*from_ns*/)
                 max_shared_edns = min(max_shared_edns, server.last_seen_edns);
         } else {
             nameservers[from_ns].last_seen_edns = q->edns_seen;
-            // maybe reduce the global limit downwards to accomodate this NS
+            // maybe reduce the global limit downwards to accommodate this NS
             max_shared_edns = min(max_shared_edns, q->edns_seen);
         }
         if (max_shared_edns < RFC1035_DEFAULT_PACKET_SZ)
@@ -1244,7 +1244,7 @@ idnsGrokReply(const char *buf, size_t sz, int /*from_ns*/)
         }
 
         // Do searchpath processing on the master A query only to keep
-        // things simple. NXDOMAIN is authorative for the label, not
+        // things simple. NXDOMAIN is authoritative for the label, not
         // the record type.
         if (q->rcode == 3 && !q->master && q->do_searchpath && q->attempt < MAX_ATTEMPT) {
             assert(NULL == message->answer);
index b04a9ad15e4ef371fc990a7c4511af732ca94716..d84ffe51f48bc707067c762050aeb0c6e992c73d 100644 (file)
@@ -74,7 +74,7 @@ typedef enum {
     //       a log warning if the files are missing
     TCP_RESET,                  // Send TCP RST packet instead of error page
 
-    ERR_SECURE_ACCEPT_FAIL, // Rejects the SSL connection intead of error page
+    ERR_SECURE_ACCEPT_FAIL, // Rejects the SSL connection instead of error page
     ERR_REQUEST_START_TIMEOUT, // Aborts the connection instead of error page
     ERR_REQUEST_PARSE_TIMEOUT, // Aborts the connection instead of error page
     ERR_RELAY_REMOTE, // Sends server reply instead of error page
index 1b08cfb2b7b89425dca3186b7c91734c01c3943a..3642e3b61013a5a0bbe2133e802ee91f73c75518 100644 (file)
@@ -71,7 +71,7 @@ public:
     clientStreamNode *thisNode; /* our stream node */
     /* the request we are processing. HMM: cbdataReferencing this will result
      * in a circular reference, so we don't. Note: we are automatically freed
-     * when it is, so thats ok. */
+     * when it is, so that's ok. */
     ClientHttpRequest *http;
 
     struct {
index b914f5db1c055e3bbfe5288421e18da9ceb6fd5e..3974a8b4070f7b0c5eb99f7ad3e9de1b4c9d9408 100644 (file)
@@ -494,7 +494,7 @@ esiAlwaysPassthrough(Http::StatusCode sline)
 
     switch (sline) {
 
-    case Http::scContinue: /* Should never reach us... but squid needs to alter to accomodate this */
+    case Http::scContinue: /* Should never reach us... but squid needs to alter to accommodate this */
 
     case Http::scSwitchingProtocols: /* Ditto */
 
@@ -2041,7 +2041,7 @@ esiProcessResult_t
 esiChoose::process (int dovars)
 {
     /* process as much of the list as we can, stopping only on
-     * faliures
+     * failures
      */
     /* We MUST have a when clause */
     NULLUnChosen();
index cdc96a4795a3fea65c0a246d1567928424da49be..c55dd80a146fdc23c5d5a190ab7ae95f5344be91 100644 (file)
@@ -967,7 +967,7 @@ int
 addmember(stackmember * stack, int *stackdepth, stackmember * candidate)
 {
     if (candidate->valuetype != ESI_EXPR_LITERAL && *stackdepth > 1) {
-        /* !(!(a==b))) is why thats safe */
+        /* !(!(a==b))) is why that's safe */
         /* strictly less than until we unwind */
 
         if (*stackdepth >= ESI_STACK_DEPTH_LIMIT)
index 82d394afb8bb9f1b361ba6dc33b3cec892fdec64..537a3fc4c4fadf23b63e40d815806b0d1038197d 100644 (file)
@@ -245,7 +245,7 @@ esiSequence::process (int inheritedVarsFlag)
     }
 
     /* process as much of the list as we can, stopping only on
-     * faliures
+     * failures
      */
     if (!processing || processedcount == 0)
         processingResult = ESI_PROCESS_COMPLETE;
index 010319458dbc8b58eb2df9746eec699e0a1d8c21..552d877fdfc4809955d1f6cf8c585dfe4eb87300 100644 (file)
@@ -302,7 +302,7 @@ ESIVariableUserAgent::ESIVariableUserAgent(ESIVarState &state)
      * Product - Mozilla version 4.0
      * in comments - compatible; .... 3705
      *
-     * Useing the RFC a more appropriate header would be
+     * Using the RFC a more appropriate header would be
      *    User-Agent: MSIE/6.0 Mozilla/4.0 Windows-NT/5.1 .NET-CLR/1.0.3705
      *    or something similar.
      *
index fc47ab2bd10e78d7ab9e9b43bb9072e2832b4982..054f39c59c5b7a07f69a5ffa7205461605de3258 100644 (file)
@@ -79,7 +79,7 @@ struct arpreq {
  * Working on setting up a proper firewall for a network containing some
  * Win'95 computers at our Univ, I've discovered that some smart students
  * avoid the restrictions easily just changing their IP addresses in Win'95
- * Contol Panel... It has been getting boring, so I took Squid-1.1.18
+ * Control Panel... It has been getting boring, so I took Squid-1.1.18
  * sources and added a new acl type for hard-wired access control:
  *
  * acl <name> arp <Ethernet address> ...
index e8a5fc8d4d026e64b639319ba1d5120abcc84aa3..1fb152349924bb732da4b7e77c0b48df16e42a5b 100644 (file)
@@ -607,7 +607,7 @@ aclMatchExternal(external_acl_data *acl, ACLFilledChecklist *ch)
             /* Ours, use it.. if the key matches */
             const char *key = makeExternalAclKey(ch, acl);
             if (!key)
-                return ACCESS_DUNNO; // insufficent data to continue
+                return ACCESS_DUNNO; // insufficient data to continue
             if (strcmp(key, (char*)entry->key) != 0) {
                 debugs(82, 9, "entry key='" << (char *)entry->key << "', our key='" << key << "' do not match. Discarded.");
                 // too bad. need a new lookup.
index a519867e049e3fb7b1e8506b6d17c1ee0d69890c..6c9edc0d988a096214fa6191da65652420120ff6 100644 (file)
@@ -25,7 +25,7 @@ namespace Format
 {
 
 /*
- * Bytecodes for the configureable format stuff
+ * Bytecodes for the configurable format stuff
  */
 typedef enum {
     LFT_NONE,           /* dummy */
@@ -67,7 +67,7 @@ typedef enum {
     LFT_SERVER_LOCAL_TOS,
     LFT_SERVER_LOCAL_NFMARK,
 
-    /* original Request-Line details recieved from client */
+    /* original Request-Line details received from client */
     LFT_CLIENT_REQ_METHOD,
     LFT_CLIENT_REQ_URI,
     LFT_CLIENT_REQ_URLSCHEME,
@@ -77,7 +77,7 @@ typedef enum {
     /* LFT_CLIENT_REQ_QUERY, */
     LFT_CLIENT_REQ_VERSION,
 
-    /* Request-Line details recieved from client (legacy, filtered) */
+    /* Request-Line details received from client (legacy, filtered) */
     LFT_REQUEST_METHOD,
     LFT_REQUEST_URI,
     LFT_REQUEST_URLPATH_OLD_31,
@@ -112,7 +112,7 @@ typedef enum {
     /*LFT_REQUEST_SIZE_BODY, */
     /*LFT_REQUEST_SIZE_BODY_NO_TE, */
 
-    /* original Status-Line details recieved from server */
+    /* original Status-Line details received from server */
     // XXX: todo
 
     /* Status-Line details sent to the client */
index 7a1652317fceabdf5860051e26ec10c8691192f9..7f09fc2fe9091bcf0ef9291976d30f5ccd0a1cc0 100644 (file)
@@ -23,7 +23,7 @@ class TokenTableEntry;
 
 /// A namespace or 'set' of tokens
 /// components register their namespace prefix and an array of tokens
-/// which can then be embeded in any format.
+/// which can then be embedded in any format.
 class TokenNamespace
 {
 public:
index 76f6011f01115eb7758f5f20be571fe6902999cd..6f223a8aad2468e26b0840dd78bf0888d1dee405 100644 (file)
@@ -77,7 +77,7 @@ Format::Format::parse(const char *def)
         return false;
     }
 
-    /* very inefficent parser, but who cares, this needs to be simple */
+    /* very inefficient parser, but who cares, this needs to be simple */
     /* First off, let's tokenize, we'll optimize in a second pass.
      * A token can either be a %-prefixed sequence (usually a dynamic
      * token but it can be an escaped sequence), or a string. */
@@ -644,7 +644,7 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
         case LFT_DNS_WAIT_TIME:
             if (al->request && al->request->dnsWait >= 0) {
                 // TODO: microsecond precision for dns wait time.
-                // Convert miliseconds to timeval struct:
+                // Convert milliseconds to timeval struct:
                 outtv.tv_sec = al->request->dnsWait / 1000;
                 outtv.tv_usec = (al->request->dnsWait % 1000) * 1000;
                 doMsec = 1;
@@ -969,7 +969,7 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
         /* case LFT_USER_SCHEME: */
 
         // the fmt->type can not be LFT_HTTP_SENT_STATUS_CODE_OLD_30
-        // but compiler complains if ommited
+        // but compiler complains if omitted
         case LFT_HTTP_SENT_STATUS_CODE_OLD_30:
         case LFT_HTTP_SENT_STATUS_CODE:
             outint = al->http.code;
index b1740e912e65110465c75fb2d7d1c20145aa8eb8..c1a9c4e26118143a352df29cae97ec322f6a9ce4 100644 (file)
@@ -44,7 +44,7 @@ public:
     Format(const char *name);
     virtual ~Format();
 
-    /* very inefficent parser, but who cares, this needs to be simple */
+    /* very inefficient parser, but who cares, this needs to be simple */
     /* First off, let's tokenize, we'll optimize in a second pass.
      * A token can either be a %-prefixed sequence (usually a dynamic
      * token but it can be an escaped sequence), or a string. */
index 6a083e27bb624948a4863c8bec8a1ad2168c2032..03db92dd09d3ea3f6bb78ed92b4873c43148ddc1 100644 (file)
@@ -271,7 +271,7 @@ fqdncacheAddEntry(fqdncache_entry * f)
     hash_link *e = (hash_link *)hash_lookup(fqdn_table, f->hash.key);
 
     if (NULL != e) {
-        /* avoid colission */
+        /* avoid collision */
         fqdncache_entry *q = (fqdncache_entry *) e;
         fqdncacheRelease(q);
     }
index 38be7cdd8a83e3bcdd48bae75c668651c1089379..0554299f8bb7208707977e40c722514e7246a7df 100644 (file)
@@ -317,7 +317,7 @@ Rock::IoState::writeToDisk()
 
     theBuf.clear();
 
-    // theFile->write may call writeCompleted immediatelly
+    // theFile->write may call writeCompleted immediately
     theFile->write(r);
 }
 
index ac324aac5fc0faa904f831fdb3fa7d20224cac3c..3eb0d533cb5dd2c6c43b0dcda01f67e1e357cc8f 100644 (file)
@@ -791,7 +791,7 @@ Rock::SwapDir::openStoreIO(StoreEntry &e, StoreIOState::STFNCB *cbFile, StoreIOS
     // locked entry is safe, but no support for reading the entry we swap out.
     const Ipc::StoreMapAnchor *slot = map->peekAtReader(e.swap_filen);
     if (!slot)
-        return NULL; // we were writing afterall
+        return NULL; // we were writing after all
 
     Rock::SwapDir::Pointer self(this);
     IoState *sio = new IoState(self, &e, cbFile, cbIo, data);
index 5eca67aad0e2da43f9f42e8892a318bfda849e3d..9e25ef6688c063bd5782cba62293e7cba1aaf372 100644 (file)
@@ -251,7 +251,7 @@ Fs::Ufs::UFSStoreState::readCompleted(const char *buf, int len, int, RefCount<Re
      * occur strictly after reads and writes.
      * ufs doesn't queue, it simply completes, so close callbacks occur
      * strictly after reads and writes.
-     * aufs performs closes syncronously, so close events must be managed
+     * aufs performs closes synchronously, so close events must be managed
      * to force strict ordering.
      * The below does this:
      * closing is set when theFile->close() has been called, and close only triggers
index 0718433f46aa902f069505e42d9576c6ac419e24..bda76b8ee78ac466e49df778a50637edbe8f4a55 100644 (file)
@@ -469,7 +469,7 @@ Fs::Ufs::UFSSwapDir::maintain()
 
     // f is percentage of 'gap' filled between low- and high-water.
     // Used to reduced purge rate when between water markers, and
-    // to multiply it more agressively the further above high-water
+    // to multiply it more aggressively the further above high-water
     // it reaches. But in a graceful linear growth curve.
     double f = 1.0;
     if (highWaterSz > lowWaterSz) {
index e5e6a772509148a6d59a5b23fdebd0b3c2b4486f..4e5528648c138177dc6f46843c91ea28e1065e1a 100644 (file)
@@ -55,7 +55,7 @@ void safeunlink(const char *path, int quiet);
  * consequences of errors.
  *
  * \retval true successful rename
- * \retval false an error occured
+ * \retval false an error occurred
  */
 bool FileRename(const SBuf &from, const SBuf &to);
 
index 640afe734fb8f63cc207aca0a8e9d891762c122d..0a52614db44ac602e3dadb240a6ba2a547a26d39 100644 (file)
@@ -890,7 +890,7 @@ helper_server::popRequest(int request_number)
     Helper::Xaction *r = nullptr;
     helper_server::RequestIndex::iterator it;
     if (parent->childs.concurrency) {
-        // If concurency supported retrieve request from ID
+        // If concurrency supported retrieve request from ID
         it = requestsIndex.find(request_number);
         if (it != requestsIndex.end()) {
             r = *(it->second);
@@ -1032,7 +1032,7 @@ helperHandleRead(const Comm::ConnectionPointer &conn, char *, size_t len, Comm::
                 char *e = NULL;
                 i = strtol(msg, &e, 10);
                 // Do we need to check for e == msg? Means wrong response from helper.
-                // Will be droped as "unexpected reply on channel 0"
+                // Will be dropped as "unexpected reply on channel 0"
                 needsMore = !(xisspace(*e) || (eom && e == eom));
                 if (!needsMore) {
                     msg = e;
index a2d62f26731cfe5144ed821186e7b7e70822c226..d82ee844ce430b91fbc6376afa486ee7ec83f7df 100644 (file)
@@ -37,7 +37,7 @@ public:
     /**
      * Update an existing set of details with new start/max/idle/concurrent limits.
      * This is for parsing new child settings into an object incrementally then updating
-     * the running set without loosing any of the active state or causing races.
+     * the running set without losing any of the active state or causing races.
      */
     ChildConfig &updateLimits(const ChildConfig &rhs);
 
index e076f6097f7ef87acd480b526f93695eeb3722e8..b8cebd0d04f1e1e6e17747049380cc68aeeb1dcb 100644 (file)
@@ -86,7 +86,7 @@ Helper::Reply::finalize()
             }
 
         } else if (!strncmp(p,"AF ",3)) {
-            // NTLM/Negotate OK response
+            // NTLM/Negotiate OK response
             result = Helper::Okay;
             p+=3;
             // followed by:
index 53cb80383a12e16320ea0fbfd78b5bde3a1425b5..a71a1d30d5e20b788b927e8aa9a8c01f929fb3f1 100644 (file)
@@ -1644,7 +1644,7 @@ htcpSocketShutdown(void)
      * disable reading on the outgoing socket.
      */
     /* XXX Don't we need this handler to read replies while shutting down?
-     * I think there should be a separate hander for reading replies..
+     * I think there should be a separate handler for reading replies..
      */
     assert(Comm::IsConnOpen(htcpOutgoingConn));
 
index 2fd0fbf2132a26ea260815208aea7e110cc263a2..fc34c9046692f69ee96967b312ce9f0d9bc51f71 100644 (file)
@@ -10,7 +10,7 @@
 
 /*
  * Anonymizing patch by lutz@as-node.jena.thur.de
- * have a look into http-anon.c to get more informations.
+ * have a look into http-anon.c to get more information.
  */
 
 #include "squid.h"
@@ -1098,7 +1098,7 @@ HttpStateData::persistentConnStatus() const
     /** \par
      * In chunked response we do not know the content length but we are absolutely
      * sure about the end of response, so we are calling the statusIfComplete to
-     * decide if we can be persistant
+     * decide if we can be persistent
      */
     if (lastChunk && flags.chunked)
         return statusIfComplete();
@@ -1351,7 +1351,7 @@ HttpStateData::truncateVirginBody()
         // server sent more that the advertised content length
         debugs(11, 5, "payloadSeen=" << payloadSeen <<
                " clen=" << clen << '/' << vrep->content_length <<
-               " trucated=" << payloadTruncated << '+' << extras);
+               " truncated=" << payloadTruncated << '+' << extras);
 
         inBuf.chop(0, inBuf.length() - extras);
         payloadTruncated += extras;
@@ -2310,7 +2310,7 @@ HttpStateData::getMoreRequestBody(MemBuf &buf)
     buf.append(raw.content(), rawDataSize);
     buf.append("\r\n", 2);
 
-    Must(rawDataSize > 0); // we did not accidently created last-chunk above
+    Must(rawDataSize > 0); // we did not accidentally created last-chunk above
 
     // Do not send last-chunk unless we successfully received everything
     if (receivedWholeRequestBody) {
index a2851d1e70b86d0d1e87df00d5ce3bd563496e64..92683113dbc80b411b5730c5cc7196b4da72075f 100644 (file)
@@ -384,7 +384,7 @@ clientIfRangeMatch(ClientHttpRequest * http, HttpReply * rep)
 {
     const TimeOrTag spec = http->request->header.getTimeOrTag(Http::HdrType::IF_RANGE);
 
-    /* check for parsing falure */
+    /* check for parsing failure */
     if (!spec.valid)
         return false;
 
index 1b5395cbd0026c9f61db932ac5b1926800b7df9e..4ce775e17e5ecbabd05e4a28f0d77e1b6c030317 100644 (file)
@@ -233,7 +233,7 @@ Http::One::Parser::getHostHeaderField()
 
     while (tok.prefix(p, LineCharacters())) {
         if (!tok.skipOne(CharacterSet::LF)) // move tokenizer past the LF
-            break; // error. reached invalid octet or end of buffer insted of an LF ??
+            break; // error. reached invalid octet or end of buffer instead of an LF ??
 
         // header lines must start with the name (case insensitive)
         if (p.substr(0, namelen).caseCmp(name, namelen))
index f3440811d63999b344a2aa307d896bcba2540916..e3c254d0571957b6fd90112d5c29877a4a896a13 100644 (file)
@@ -128,7 +128,7 @@ typedef struct icmphdr {
 
 /**
  * Class partially implementing RFC 792 - ICMP for IP version 4.
- * Provides ECHO-REQUEST, ECHO-REPLY (secion 4.1)
+ * Provides ECHO-REQUEST, ECHO-REPLY (section 4.1)
  */
 class Icmp4 : public Icmp
 {
index 4bbd47a8c3f8a46834844e421348b4529b5c9372..e9160a2cc6c2c561b810c070605ca7912a25eef1 100644 (file)
@@ -241,7 +241,7 @@ Icmp6::Recv(void)
 
     debugs(42, 8, HERE << n << " bytes from " << preply.from);
 
-// FIXME INET6 : The IPv6 Header (ip6_hdr) is not availble directly >:-(
+// FIXME INET6 : The IPv6 Header (ip6_hdr) is not available directly >:-(
 //
 // TTL still has to come from the IP header somewhere.
 //  still need to strip and process it properly.
@@ -303,7 +303,7 @@ Icmp6::Recv(void)
 
     /*
      * FIXME INET6: Without access to the IPv6-Hops header we must rely on the total RTT
-     *      and could caculate the hops from that, but it produces some weird value mappings using ipHops
+     *      and could calculate the hops from that, but it produces some weird value mappings using ipHops
      *  for now everything is 1 v6 hop away with variant RTT
      * WANT:    preply.hops = ip->ip6_hops; // ipHops(ip->ip_hops);
      */
index ec0a709a91eb364aa3196bfecca3de71fe33e7ab..f7ba5aff1ec26574817b1db0babb656d847b5bbd 100644 (file)
@@ -40,7 +40,7 @@
 
 /**
  * Class partially implementing RFC 4443 - ICMPv6 for IP version 6.
- * Provides ECHO-REQUEST, ECHO-REPLY (secion 4)
+ * Provides ECHO-REQUEST, ECHO-REPLY (section 4)
  */
 class Icmp6 : public Icmp
 {
index 5e33427ab7fc3044e7987d381553e1b6746625cd..bca7fcada970272c66c9aa9658c0bcdbd56108da 100644 (file)
@@ -786,7 +786,7 @@ netdbExchangeHandleReply(void *data, StoreIOBuffer receivedData)
 
             case NETDB_EX_NETWORK:
                 ++o;
-                /* FIXME INET6 : NetDB can still ony send IPv4 */
+                /* FIXME INET6 : NetDB can still only send IPv4 */
                 memcpy(&line_addr, p + o, sizeof(struct in_addr));
                 addr = line_addr;
                 o += sizeof(struct in_addr);
index 58f2cc4d2a024ff2afe6dea5f8780f0ce90b6463..cf988fdc3b76aac47a6e03921f0930a6c9d37e90 100644 (file)
@@ -65,7 +65,7 @@
 /* windows uses the control socket for feedback to squid */
 #define LINK_TO_SQUID squid_link
 
-// windows still requires WSAFD but there are too many dependancy problems
+// windows still requires WSAFD but there are too many dependency problems
 // to just link to win32.cc where it is normally defined.
 
 int
index b3b29faac9d83c891a4d6e2db3f3c53e3ccde0d0..7e15d30bbfa3fdd20a8cdfc5b1949c5fc3e6232e 100644 (file)
@@ -22,7 +22,7 @@ namespace Ident
 
 /**
  * Open a connection and request IDENT information from a peer machine.
- * Callack will be called whan the lookup is completed.
+ * Callback will be called whan the lookup is completed.
  * Self-registers with a global ident lookup manager,
  * will call Ident::Init() itself if the manager has not been initialized already.
  */
index 862a41109de55668c6505808ba91bef8a28750ef..28f4dcb373ddd67af69d4486f9f7468cf712eae0 100644 (file)
@@ -172,7 +172,7 @@ Ip::Address::isAnyAddr() const
     return IN6_IS_ADDR_UNSPECIFIED(&mSocketAddr_.sin6_addr) || IN6_ARE_ADDR_EQUAL(&mSocketAddr_.sin6_addr, &v4_anyaddr);
 }
 
-/// NOTE: Does NOT clear the Port stored. Ony the Address and Type.
+/// NOTE: Does NOT clear the Port stored. Only the Address and Type.
 void
 Ip::Address::setAnyAddr()
 {
@@ -807,7 +807,7 @@ Ip::Address::toStr(char* buf, const unsigned int blen, int force) const
     }
 
     /* some external code may have blindly memset a parent. */
-    /* thats okay, our default is known */
+    /* that's okay, our default is known */
     if ( isAnyAddr() ) {
         if (isIPv6())
             memcpy(buf,"::\0", min(static_cast<unsigned int>(3),blen));
index 87754f874424d8742225e289798150a7040046e0..c7ce8e6d03b5fb590fee8ca2cd71a84446a577d3 100644 (file)
@@ -127,7 +127,7 @@ public:
      */
     bool isSiteLocal6() const;
 
-    /** Test whether content is an IPv6 address with SLAAC EUI-64 embeded.
+    /** Test whether content is an IPv6 address with SLAAC EUI-64 embedded.
      \retval true  if address matches ::ff:fe00:0
      \retval false if --disable-ipv6 has been compiled.
      \retval false if address does not match ::ff:fe00:0
@@ -306,7 +306,7 @@ public:
      * 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.
-     * these functiosn WILL NOT be in the final public API after transition.
+     * these functions WILL NOT be in the final public API after transition.
      */
 
     void getSockAddr(struct sockaddr_storage &addr, const int family) const;
index 8d0829a8ff13c24a10e6a5277fc65e8b45545d61..8251cba36948b6bb0a3b0dff753991a019ab6ad6 100644 (file)
@@ -97,7 +97,7 @@ private:
      *
      * \param silent   0 if errors are to be displayed. 1 if errors are to be hidden.
      * \param newConn  Details known, to be updated where relevant.
-     * \return         Whether successfuly located the new address.
+     * \return         Whether successfully located the new address.
      */
     bool TproxyTransparent(const Comm::ConnectionPointer &newConn, int silent);
 
@@ -106,7 +106,7 @@ private:
      *
      * \param silent   0 if errors are to be displayed. 1 if errors are to be hidden.
      * \param newConn  Details known, to be updated where relevant.
-     * \return         Whether successfuly located the new address.
+     * \return         Whether successfully located the new address.
      */
     bool NetfilterInterception(const Comm::ConnectionPointer &newConn, int silent);
 
@@ -115,7 +115,7 @@ private:
      *
      * \param silent   0 if errors are to be displayed. 1 if errors are to be hidden.
      * \param newConn  Details known, to be updated where relevant.
-     * \return         Whether successfuly located the new address.
+     * \return         Whether successfully located the new address.
      */
     bool IpfwInterception(const Comm::ConnectionPointer &newConn, int silent);
 
@@ -124,7 +124,7 @@ private:
      *
      * \param silent   0 if errors are to be displayed. 1 if errors are to be hidden.
      * \param newConn  Details known, to be updated where relevant.
-     * \return         Whether successfuly located the new address.
+     * \return         Whether successfully located the new address.
      */
     bool IpfInterception(const Comm::ConnectionPointer &newConn, int silent);
 
@@ -133,7 +133,7 @@ private:
      *
      * \param silent   0 if errors are to be displayed. 1 if errors are to be hidden.
      * \param newConn  Details known, to be updated where relevant.
-     * \return         Whether successfuly located the new address.
+     * \return         Whether successfully located the new address.
      */
     bool PfInterception(const Comm::ConnectionPointer &newConn, int silent);
 
index aaa4525abe16501c64e870ad1742eba60f207235..2fa1c055a2af010d35f911062cd012ae3844d67d 100644 (file)
@@ -450,7 +450,7 @@ Ip::Qos::Config::parseConfigLine()
 /**
  * NOTE: Due to the low-level nature of the library these
  * objects are part of the dump function must be self-contained.
- * which means no StoreEntry refrences. Just a basic char* buffer.
+ * which means no StoreEntry references. Just a basic char* buffer.
 */
 void
 Ip::Qos::Config::dumpConfigLine(char *entry, const char *name) const
index c56597e24546f9be2f6cce65e416fb7d654ef4cd..e120c8cfb2b736a8feaff596e69b7143e06d1fdf 100644 (file)
@@ -319,7 +319,7 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name
 
     /* child */
     TheProcessKind = pkHelper;
-    no_suid();          /* give up extra priviliges */
+    no_suid();          /* give up extra privileges */
 
     /* close shared socket with parent */
     close(prfd);
index e42888b3aef5660c63703ce71bd4af15ed1c2af1..60e9e358017ef286cfbccf767e1a8c005dc18a0c 100644 (file)
@@ -43,7 +43,7 @@ static DelayedSharedListenRequests TheDelayedRequests;
 static int
 AddToMap(const PendingOpenRequest &por)
 {
-    // find unused ID using linear seach; there should not be many entries
+    // find unused ID using linear search; there should not be many entries
     for (int id = 0; true; ++id) {
         if (TheSharedListenRequestMap.find(id) == TheSharedListenRequestMap.end()) {
             TheSharedListenRequestMap[id] = por;
index 73254d1e110a44ed39a095d20fe5a4d9ebe0947c..07a07a5c80db88363d5a504e9341fd8da5f6d62d 100644 (file)
@@ -69,7 +69,7 @@ Ipc::StoreMap::compareVersions(const sfileno fileno, time_t newVersion) const
 {
     const Anchor &inode = anchorAt(fileno);
 
-    // note: we do not lock, so comparison may be inacurate
+    // note: we do not lock, so comparison may be inaccurate
 
     if (inode.empty())
         return +2;
index 196347d00975c139df65668348c38ca7ae57da08..c071d92c470209d541a7e8b7efa3284b9f603b25 100644 (file)
@@ -422,7 +422,7 @@ ipcacheAddEntry(ipcache_entry * i)
     hash_link *e = (hash_link *)hash_lookup(ip_table, i->hash.key);
 
     if (NULL != e) {
-        /* avoid colission */
+        /* avoid collision */
         ipcache_entry *q = (ipcache_entry *) e;
         ipcacheRelease(q);
     }
@@ -1052,7 +1052,7 @@ Dns::CachedIps::forgetMarking(const char *name, const Ip::Address &ip)
  * Does nothing if the domain name does not exist.
  *
  \param name    domain name to have an IP marked bad
- \param addr    specific addres to be marked bad
+ \param addr    specific address to be marked bad
  */
 void
 ipcacheMarkBadAddr(const char *name, const Ip::Address &addr)
index d2ff16b73d86b1035974a8cf8bd1d988952d26ec..6386b08dd365b4f37dafa8c19901fa21cfced84b 100644 (file)
@@ -162,7 +162,7 @@ UNION
         (SELECT COUNT(*) FROM access_log WHERE squid_request_status LIKE '%MISS%')
         /
         (SELECT COUNT(*) FROM access_log)*100
-        AS pecentage;
+        AS percentage;
 
 -- response times
 CREATE OR REPLACE VIEW time_response_ranges AS
index 303af481f3e17510cea486bec2faf5a863bc0b66..6e4f71446c6fb97ae899d00c25e78c63025a1557 100755 (executable)
@@ -345,7 +345,7 @@ sub log_info {
 # we use logfile to pass database access information to this script
 # sample configuration:
 # access_log daemon:/host/database/table/username/password squid
-# to let a parmeter unspecified, e.g. the database host, use a double slash:
+# to let a parameter unspecified, e.g. the database host, use a double slash:
 # access_log daemon://database/table/username/password squid
 my ( $host, $database, $table, $user, $pass ) = $log_file =~ / \/(.*?)\/(.*?)\/(.*?)\/(.*?)\/(.*?) \z /xms;
 
index 77c436d738620d90db24f1c9770f79a38598e939..050ea19c4c754ed143777c7552aa69c4337f5b1b 100644 (file)
@@ -212,7 +212,7 @@ Log::TcpLogger::appendRecord(const char *record, const size_t len)
     }
 
     drops = 0;
-    // append without spliting buf, unless it exceeds IoBufSize
+    // append without splitting buf, unless it exceeds IoBufSize
     for (size_t off = 0; off < len; off += IoBufSize)
         appendChunk(record + off, min(len - off, IoBufSize));
 }
@@ -222,7 +222,7 @@ void
 Log::TcpLogger::appendChunk(const char *chunk, const size_t len)
 {
     Must(len <= IoBufSize);
-    // add a buffer if there is not one that can accomodate len bytes
+    // add a buffer if there is not one that can accommodate len bytes
     bool addBuffer = buffers.empty() ||
                      (buffers.back()->size+len > IoBufSize);
     // also add a buffer if there is only one and that one is being written
index a820d172ba143b090fd998f4d560e95cbd921565..c2dc9bc709fbcf1d8224af619d53889533106864 100644 (file)
@@ -110,7 +110,7 @@ main(int argc, char *argv[])
     }
     setbuf(stdout, NULL);
     /* XXX stderr should not be closed, but in order to support squid must be
-     * able to collect and manage modules's stderr first.
+     * able to collect and manage modules' stderr first.
      */
     close(2);
     t = open(_PATH_DEVNULL, O_RDWR);
index eed602c73c9a208575a255633ee47ccd0265ffdf..e040a7644b3db9693c0700e83f294e8851700dba 100644 (file)
@@ -138,7 +138,7 @@ public:
     /**
      \par
      * Main cleanup handler. For MemPools to stay within upper idle limits,
-     * this function needs to be called periodically, preferrably at some
+     * this function needs to be called periodically, preferably at some
      * constant rate, eg. from Squid event. It looks through all pools and
      * chunks, cleans up internal states and checks for releasable chunks.
      *
index 4e9d93bf7f47e04b73bd6f2bb1d4534477c52e22..570b722d7932f05f7cb117c138714ea522407dc9 100644 (file)
@@ -101,7 +101,7 @@ memCompObjChunks(void *const &obj, MemChunk * const &chunk)
 MemChunk::MemChunk(MemPoolChunked *aPool)
 {
     /* should have a pool for this too -
-     * note that this requres:
+     * note that this requires:
      * allocate one chunk for the pool of chunks's first chunk
      * allocate a chunk from that pool
      * move the contents of one chunk into the other
index a08e25e52fa435269ed8734534c4de2209064acf..b5ff40072c305c9dd88a30e5df1e9d06ccef0c04 100644 (file)
@@ -93,7 +93,7 @@ protected:
     OfflineToggleAction(const CommandPointer &cmd);
 };
 
-/// Registeres profiles for the actions above; \todo move elsewhere?
+/// Registers profiles for the actions above; \todo move elsewhere?
 void RegisterBasics();
 
 } // namespace Mgr
index d7501454ee2008acc5a1a5cc2fa4ff0c3dd98f16..17cb1b61d6e788fbf7d9de2fb3cd85722895e689 100644 (file)
@@ -544,7 +544,7 @@ squid MODULE-IDENTITY
 -- cacheNetwork group { squid 4 }
 --
 -- This material is probably best suited elsewhere, however for now it
--- will reside here until the both the Proxy and Squid MIBs are implimented.
+-- will reside here until the both the Proxy and Squid MIBs are implemented.
 --
 
        cacheIpCache    OBJECT IDENTIFIER ::= { cacheNetwork 1 }
index 11c1afa1575d99d9bec1715d99a902738c52b221..18764be8e61814cf327f13ee29b42a8b86681652 100644 (file)
@@ -1478,7 +1478,7 @@ peerCountMcastPeersAbort(PeerSelector * const psstate)
 
     cbdataReferenceDone(psstate->peerCountMcastPeerXXX);
 
-    fake->abort(); // sets ENTRY_ABORTED and initiates releated cleanup
+    fake->abort(); // sets ENTRY_ABORTED and initiates related cleanup
     fake->mem_obj->request = nullptr;
     fake->unlock("peerCountMcastPeersDone");
 }
index 9b9a881f693766e0c0922c3fd369eafb6ab099b2..801eafe137dc9f591dc8e075e083c126b358f442 100644 (file)
@@ -35,7 +35,7 @@
 #include "ssl/support.h"
 #endif
 
-/// url maximum length + extra informations passed to redirector
+/// url maximum length + extra information passed to redirector
 #define MAX_REDIRECTOR_REQUEST_STRLEN (MAX_URL + 1024)
 
 class RedirectStateData
index d1a3c12a01309766824a7d6e426ae437ed631f89..14b82a7b7c85636e8b2772f7cc9a15755e507554 100644 (file)
@@ -370,7 +370,7 @@ refreshCheck(const StoreEntry * entry, HttpRequest * request, time_t delta)
 
 #if USE_HTTP_VIOLATIONS
         /* Normally a client reload request ("Cache-Control: no-cache" or "Pragma: no-cache")
-         * means we must treat this reponse as STALE and fetch a new one.
+         * means we must treat this response as STALE and fetch a new one.
          *
          * However, some options exist to override this behaviour. For example, we might just
          * revalidate our existing response, or even just serve it up without revalidating it.
index eb718bb874b88e673b1bd4213464c2991bee87fc..58ee49ed8d125f5707776fac024ecd9fdc2c7344 100644 (file)
@@ -224,7 +224,7 @@ SBuf&
 SBuf::Printf(const char *fmt, ...)
 {
     // with printf() the fmt or an arg might be a dangerous char*
-    // NP: cant rely on vappendf() Locker because of clear()
+    // NP: can't rely on vappendf() Locker because of clear()
     const Locker blobKeeper(this, buf());
 
     va_list args;
@@ -528,7 +528,7 @@ SBuf::c_str()
     ++stats.rawAccess;
     /* null-terminate the current buffer, by hand-appending a \0 at its tail but
      * without increasing its length. May COW, the side-effect is to guarantee that
-     * the MemBlob's tail is availabe for us to use */
+     * the MemBlob's tail is available for us to use */
     *rawSpace(1) = '\0';
     ++store_->size;
     ++stats.setChar;
@@ -651,7 +651,7 @@ SBuf::find(const SBuf &needle, size_type startPos) const
             debugs(24, 8, "First byte not found");
             return npos;
         }
-        // lastPossible guarrantees no out-of-bounds with memcmp()
+        // lastPossible guarantees no out-of-bounds with memcmp()
         if (0 == memcmp(needle.buf(), tmp, needle.length())) {
             debugs(24, 8, "Found at " << (tmp-buf()));
             return (tmp-buf());
@@ -849,7 +849,7 @@ SBuf::toUpper()
  * NO verifications are made on the size parameters, it's up to the caller to
  * make sure that the new size is big enough to hold the copied contents.
  * The re-allocated storage MAY be bigger than the requested size due to size-chunking
- * algorithms in MemBlock, it is guarranteed NOT to be smaller.
+ * algorithms in MemBlock, it is guaranteed NOT to be smaller.
  */
 void
 SBuf::reAlloc(size_type newsize)
index c76eb3e4bff6f5750c36bf78427561460b596e0d..aee1a07bd26b98660e1ee1641f424b7067d3a2cf 100644 (file)
@@ -219,7 +219,7 @@ public:
 
     /** print SBuf contents and debug information about the SBuf to an ostream
      *
-     * Debug function, dumps to a stream informations on the current SBuf,
+     * Debug function, dumps to a stream information on the current SBuf,
      * including low-level details and statistics.
      */
     std::ostream& dump(std::ostream &os) const;
@@ -323,7 +323,7 @@ public:
      */
     SBuf consume(size_type n = npos);
 
-    /// gets global statistic informations
+    /// gets global statistic information
     static const SBufStats& GetStats();
 
     /** Copy SBuf contents into user-supplied C buffer.
@@ -642,7 +642,7 @@ private:
 
     /**
      * Try to guesstimate how big a MemBlob to allocate.
-     * The result is guarranteed to be to be at least the desired size.
+     * The result is guaranteed to be to be at least the desired size.
      */
     size_type estimateCapacity(size_type desired) const {return (2*desired);}
 
index 43285df431ff55ab9219d772b288f3205054995a..06f1aad59d51f0aa960779ae7492c3dc08fd73fd 100644 (file)
@@ -25,7 +25,7 @@ public:
     ~EncryptorAnswer(); ///< deletes error if it is still set
     Comm::ConnectionPointer conn; ///< peer connection (secured on success)
 
-    /// answer recepients must clear the error member in order to keep its info
+    /// answer recipients must clear the error member in order to keep its info
     /// XXX: We should refcount ErrorState instead of cbdata-protecting it.
     CbcPointer<ErrorState> error; ///< problem details (nil on success)
 
@@ -35,7 +35,7 @@ public:
 
 std::ostream &operator <<(std::ostream &, const Security::EncryptorAnswer &);
 
-} // namepace Security
+} // namespace Security
 
 #endif /* SQUID_SECURITY_ENCRYPTORANSWER_H */
 
index 6ec2eecc2f3e961ae28ed591587b1f518e842d9f..e75acf7b36079030839448eb773bd320d65f2a2c 100644 (file)
@@ -148,7 +148,7 @@ private:
      * their reference counts independently, or it may not. This varies between
      * API functions, though it is usually documented.
      *
-     * This means the caller code needs to be carefuly written to use the correct
+     * This means the caller code needs to be carefully written to use the correct
      * reset method and avoid the raw-pointer constructor unless OpenSSL function
      * producing the pointer is clearly documented as incrementing a lock for it.
      */
index 3d5caa2cac3c0142993501755509d8ea274ddaed..95a28d9d762c1546afbf9a42dbc7338c2b3f5de0 100644 (file)
@@ -539,18 +539,18 @@ Security::PeerConnector::noteNegotiationError(const int ret, const int ssl_error
 void
 Security::PeerConnector::bail(ErrorState *error)
 {
-    Must(error); // or the recepient will not know there was a problem
+    Must(error); // or the recipient will not know there was a problem
     Must(callback != NULL);
     CbDialer *dialer = dynamic_cast<CbDialer*>(callback->getDialer());
     Must(dialer);
     dialer->answer().error = error;
 
     callBack();
-    // Our job is done. The callabck recepient will probably close the failed
+    // Our job is done. The callabck recipient will probably close the failed
     // peer connection and try another peer or go direct (if possible). We
     // can close the connection ourselves (our error notification would reach
-    // the recepient before the fd-closure notification), but we would rather
-    // minimize the number of fd-closure notifications and let the recepient
+    // the recipient before the fd-closure notification), but we would rather
+    // minimize the number of fd-closure notifications and let the recipient
     // manage the TCP state of the connection.
 }
 
index af85509df26a7e1faa5851e640964c40ddf38643..73933564e5fed5f6efb9d7649084622caed04ba0 100644 (file)
@@ -105,7 +105,7 @@ protected:
     virtual bool initialize(Security::SessionPointer &);
 
     /// Performs a single secure connection negotiation step.
-    /// It is called multiple times untill the negotiation finishes or aborts.
+    /// It is called multiple times until the negotiation finishes or aborts.
     void negotiate();
 
     /// Called after negotiation has finished. Cleans up TLS/SSL state.
index 5cd81ab1d043f0663264a9d8656767e13b1cf3ad..117bc0b8d8894ef45aceb6268c6ca0f6f1aa1fd8 100644 (file)
@@ -215,7 +215,7 @@ Security::ServerOptions::createStaticServerContext(AnyP::PortCfg &port)
         if (certs.size() > 1) {
             // NOTE: calling SSL_CTX_use_certificate() repeatedly _replaces_ the previous cert details.
             //       so we cannot use it and support multiple server certificates with OpenSSL.
-            debugs(83, DBG_CRITICAL, "ERROR: OpenSSL does not support multiple server certificates. Ignoring addional cert= parameters.");
+            debugs(83, DBG_CRITICAL, "ERROR: OpenSSL does not support multiple server certificates. Ignoring additional cert= parameters.");
         }
 
         const auto &keys = certs.front();
index 0f38601ab156c8d8a1d7c8dc5a23dd60aea5a8d5..2e3d8f440f130f5bceb3b8a983a83d3416cdc1cf 100644 (file)
@@ -537,7 +537,7 @@ void Ssl::CertificateDb::deleteRow(const char **row, int rowIndex) {
     subSize(filename);
     int ret = remove(filename.c_str());
     if (ret < 0 && errno != ENOENT)
-        throw std::runtime_error("Failed to remove certficate file " + filename + " from db");
+        throw std::runtime_error("Failed to remove certificate file " + filename + " from db");
 }
 
 bool Ssl::CertificateDb::deleteInvalidCertificate() {
index 915d83066f09ff18d127893e70ec0c55b372735c..4da374344616d53091092f2488bccfa7bffc797a 100644 (file)
@@ -318,7 +318,7 @@ Ftp::Server::clientPinnedConnectionClosed(const CommCloseCbParams &io)
         clientConnection->close();
 
     // TODO: If the server control connection is gone, reset state to login
-    // again. Reseting login alone is not enough: FtpRelay::sendCommand() will
+    // again. Resetting login alone is not enough: FtpRelay::sendCommand() will
     // not re-login because FtpRelay::serverState() is not going to be
     // fssConnected. Calling resetLogin() alone is also harmful because
     // it does not reset correctly the client-to-squid control connection (eg
@@ -838,7 +838,7 @@ Ftp::Server::handleFeatReply(const HttpReply *reply, StoreIOBuffer)
                 if (!tok.skip('"') || !tok.skip(' '))
                     continue;
 
-                // optional spaces; remember their number to accomodate MS servers
+                // optional spaces; remember their number to accommodate MS servers
                 prependSpaces = 1 + tok.skipAll(CharacterSet::SP);
 
                 SBuf cmd;
index 33da44e0ba8524dacc7a5f2d9743f1105d0e8e39..290605ce0aa58f12bfe265a1eb20a5ffed3a6403 100644 (file)
@@ -120,7 +120,7 @@ protected:
     bool createDataConnection(Ip::Address cltAddr);
     void closeDataConnection();
 
-    /// Called after data trasfer on client-to-squid data connection is
+    /// Called after data transfer on client-to-squid data connection is
     /// finished.
     void userDataCompletionCheckpoint(int finalStatusCode);
 
index 2f38d07c0eb4c9e9834fe17f373774742cbc3ad5..7a51de6fa9bdbe7e4b4f99f9d562c1b93a2ed1a4 100644 (file)
@@ -391,7 +391,7 @@ snmpDecodePacket(SnmpRequest * rq)
 
     debugs(49, 5, HERE << "Called.");
     PDU = snmp_pdu_create(0);
-    /* Allways answer on SNMPv1 */
+    /* Always answer on SNMPv1 */
     rq->session.Version = SNMP_VERSION_1;
     Community = snmp_parse(&rq->session, PDU, buf, len);
 
@@ -420,7 +420,7 @@ snmpDecodePacket(SnmpRequest * rq)
 }
 
 /*
- * Packet OK, ACL Check OK, Create reponse.
+ * Packet OK, ACL Check OK, Create response.
  */
 static void
 snmpConstructReponse(SnmpRequest * rq)
@@ -1072,7 +1072,7 @@ snmpSnmplibDebug(int lvl, char *buf)
 /*
    IPv4 address: 10.10.0.9  ==>
    oid == 10.10.0.9
-   IPv6 adress : 20:01:32:ef:a2:21:fb:32:00:00:00:00:00:00:00:00:OO:01 ==>
+   IPv6 address : 20:01:32:ef:a2:21:fb:32:00:00:00:00:00:00:00:00:OO:01 ==>
    oid == 32.1.50.239.162.33.251.20.50.0.0.0.0.0.0.0.0.0.1
 */
 void
@@ -1105,7 +1105,7 @@ addr2oid(Ip::Address &addr, oid * Dest)
    oid == 10.10.0.9 ==>
    IPv4 address: 10.10.0.9
    oid == 32.1.50.239.162.33.251.20.50.0.0.0.0.0.0.0.0.0.1 ==>
-   IPv6 adress : 20:01:32:ef:a2:21:fb:32:00:00:00:00:00:00:00:00:OO:01
+   IPv6 address : 20:01:32:ef:a2:21:fb:32:00:00:00:00:00:00:00:00:OO:01
 */
 void
 oid2addr(oid * id, Ip::Address &addr, u_int size)
index 0787e1bb90a737fff86c35c52a4b4f8effe857a1..5911b87a835d6908f5f0813c1972977369c73fda 100644 (file)
@@ -569,7 +569,7 @@ const char *Ssl::ErrorDetail::err_lib_error() const
 }
 
 /**
- * Converts the code to a string value. Supported formating codes are:
+ * Converts the code to a string value. Supported formatting codes are:
  *
  * Error meta information:
  * %err_name: The name of a high-level SSL error (e.g., X509_V_ERR_*)
@@ -603,7 +603,7 @@ int Ssl::ErrorDetail::convert(const char *code, const char **value) const
 /**
  * It uses the convert method to build the string errDetailStr using
  * a template message for the current SSL error. The template messages
- * can also contain normal error pages formating codes.
+ * can also contain normal error pages formatting codes.
  * Currently the error template messages are hard-coded
  */
 void Ssl::ErrorDetail::buildDetail() const
index 48dc40588933b70f3552549f0793350308b3d1f0..4a3ee35ba2e18549a8064feb9cb62022e97393b9 100644 (file)
@@ -60,15 +60,15 @@ public:
 private:
     typedef const char * (ErrorDetail::*fmt_action_t)() const;
     /**
-     * Holds a formating code and its conversion method
+     * Holds a formatting code and its conversion method
      */
     class err_frm_code
     {
     public:
-        const char *code;             ///< The formating code
+        const char *code;             ///< The formatting code
         fmt_action_t fmt_action; ///< A pointer to the conversion method
     };
-    static err_frm_code  ErrorFormatingCodes[]; ///< The supported formating codes
+    static err_frm_code  ErrorFormatingCodes[]; ///< The supported formatting codes
 
     const char *subject() const;
     const char *ca_name() const;
index 73677c54eb5cad8de0423c6f4768ef721cfa8334..9213a177e2755010c9f936565f5e1cab260cd24e 100644 (file)
@@ -198,11 +198,11 @@ Ssl::ErrorDetailFile::parse()
         auto *s = buf.c_str();
         const auto e = s + size;
 
-        //ignore spaces, new lines and comment lines (starting with #) at the beggining
+        //ignore spaces, new lines and comment lines (starting with #) at the beginning
         for (; (*s == '\n' || *s == ' '  || *s == '\t' || *s == '#')  && s < e; ++s) {
             if (*s == '#')
                 while (s<e &&  *s != '\n')
-                    ++s; // skip untill the end of line
+                    ++s; // skip until the end of line
         }
 
         if ( s != e) {
index 22335b8a3bbe4159f624b3374f9512082866c6cf..ed930afb4214159b697baea58b72d0f9d3840eb7 100644 (file)
@@ -74,7 +74,7 @@ public:
 
     /// The ClientBio version of the Ssl::Bio::stateChanged method
     /// When the client hello message retrieved, fill the
-    /// "features" member with the client provided informations.
+    /// "features" member with the client provided information.
     virtual void stateChanged(const SSL *ssl, int where, int ret);
     /// The ClientBio version of the Ssl::Bio::write method
     virtual int write(const char *buf, int size, BIO *table);
@@ -82,7 +82,7 @@ public:
     /// If the holdRead flag is true then it does not write any data
     /// to socket and sets the "read retry" flag of the BIO to true
     virtual int read(char *buf, int size, BIO *table);
-    /// Prevents or allow writting on socket.
+    /// Prevents or allow writing on socket.
     void hold(bool h) {holdRead_ = holdWrite_ = h;}
 
     /// Sets the buffered input data (Bio::rbuf).
@@ -109,9 +109,9 @@ private:
 /// If bumping is enabled, analyses the SSL hello message sent by squid OpenSSL
 /// subsystem (step3 bumping step) against bumping mode:
 ///   * Peek mode:  Send client hello message instead of the openSSL generated
-///                 hello message and normaly denies bumping and allow only
+///                 hello message and normally denies bumping and allow only
 ///                 splice or terminate the SSL connection
-///   * Stare mode: Sends the openSSL generated hello message and normaly
+///   * Stare mode: Sends the openSSL generated hello message and normally
 ///                 denies splicing and allow bump or terminate the SSL
 ///                 connection
 ///  If SQUID_USE_OPENSSL_HELLO_OVERWRITE_HACK is enabled also checks if the
index cde8ffccfcc740fe00916783643e2275e3a92433..822ecde3c0b277992ad48a199e987e7fd9ad7ebe 100644 (file)
@@ -20,7 +20,7 @@ namespace Ssl
 {
 
 /**
- * This class is used to hold the required informations to build
+ * This class is used to hold the required information to build
  * a request message for the certificate validator helper
  */
 class CertValidationRequest
@@ -32,7 +32,7 @@ public:
 };
 
 /**
- * This class is used to store informations found in certificate validation
+ * This class is used to store information found in certificate validation
  * response messages read from certificate validator helper
  */
 class CertValidationResponse: public RefCountable
@@ -41,7 +41,7 @@ public:
     typedef RefCount<CertValidationResponse> Pointer;
 
     /**
-     * This class used to hold error informations returned from
+     * This class used to hold error information returned from
      * cert validator helper.
      */
     class  RecvdError
@@ -70,7 +70,7 @@ public:
 
 /**
  * This class is responsible for composing or parsing messages destined to
- * or comming from a certificate validation helper.
+ * or coming from a certificate validation helper.
  * The messages format is:
 \verbatim
    response/request-code SP body-length SP [key=value ...] EOL
@@ -99,10 +99,10 @@ public:
     CertValidationMsg(MessageKind kind): CrtdMessage(kind) {}
 
     /// Build a request message for the cert validation helper
-    /// using informations provided by vcert object
+    /// using information provided by vcert object
     void composeRequest(CertValidationRequest const &vcert);
 
-    /// Parse a response message and fill the resp object with parsed informations
+    /// Parse a response message and fill the resp object with parsed information
     bool parseResponse(CertValidationResponse &resp, std::string &error);
 
     /// Search a CertItems list for the certificate with ID "name"
index 5c35f2b4120b3c22d055082bdbcf3c5eb4e564ab..878beec4e33dec2d9f14b7bab540f0c8bb387bde 100644 (file)
@@ -206,7 +206,7 @@ bool Ssl::CrtdMessage::parseRequest(Ssl::CertificateProperties &certProperties,
     i = map.find(Ssl::CrtdMessage::param_Sign);
     if (i != map.end()) {
         if ((certProperties.signAlgorithm = Ssl::certSignAlgorithmId(i->second.c_str())) == Ssl::algSignEnd) {
-            error = "Wrong signing algoritm: ";
+            error = "Wrong signing algorithm: ";
             error += i->second;
             return false;
         }
index 0b483e16083135c804e2a8ea33fe01cf1e8dac0b..aa80386bea656a90b826c1fc9f96d80dbeef7e29 100644 (file)
@@ -17,8 +17,8 @@ namespace Ssl
 class CertificateProperties;
 
 /**
- * This class is responsible for composing and parsing messages destined to, or comming
- * from an ssl_crtd server. Format of these mesages is:
+ * This class is responsible for composing and parsing messages destined to, or coming
+ * from an ssl_crtd server. Format of these messages is:
  *   response/request-code SP body length SP body
  */
 class CrtdMessage
index e06a8d411365d1de06f56bd1ab8ef5bf8b6b8ce8..7e54755d603ec35007888f3546545ec949895030 100644 (file)
@@ -154,7 +154,7 @@ static bool replaceCommonName(Security::CertPointer & cert, std::string const &r
     std::string cn = rawCn;
 
     if (cn.length() > MaxCnLen) {
-        // In the case the length od CN is more than the maximum supported size
+        // In the case the length of CN is more than the maximum supported size
         // try to use the first upper level domain.
         size_t pos = 0;
         do {
@@ -388,7 +388,7 @@ mimicExtensions(Security::CertPointer & cert, Security::CertPointer const &mimic
             if (X509_add_ext(cert.get(), ext, -1))
                 ++added;
             if (nid == NID_key_usage && !rsaPkey) {
-                // NSS does not requre the KeyEncipherment flag on EC keys
+                // NSS does not require the KeyEncipherment flag on EC keys
                 // but it does require it for RSA keys.  Since ssl-bump
                 // substitutes RSA keys for EC ones, we need to ensure that
                 // that the more stringent requirements are met.
index 3d7913b53c90fe12e6f5911f29c398b79c10eb9e..c9817f14c3a5691dfbd58fad99d6079b6b13ff41 100644 (file)
@@ -108,7 +108,7 @@ void ReadPrivateKeyFromFile(char const * keyFilename, Security::PrivateKeyPointe
 
 /**
  \ingroup SslCrtdSslAPI
- * Initialize the bio with the file 'filename' openned for reading
+ * Initialize the bio with the file 'filename' opened for reading
  */
 bool OpenCertsFileForReading(BIO_Pointer &bio, const char *filename);
 
@@ -126,7 +126,7 @@ bool ReadPrivateKey(BIO_Pointer &bio, Security::PrivateKeyPointer &pkey, pem_pas
 
 /**
  \ingroup SslCrtdSslAPI
- * Initialize the bio with the file 'filename' openned for writting
+ * Initialize the bio with the file 'filename' opened for writing
  */
 
 bool OpenCertsFileForWriting(BIO_Pointer &bio, const char *filename);
@@ -218,7 +218,7 @@ public:
     Security::PrivateKeyPointer signWithPkey; ///< The key of the signing certificate
     bool setValidAfter; ///< Do not mimic "Not Valid After" field
     bool setValidBefore; ///< Do not mimic "Not Valid Before" field
-    bool setCommonName; ///< Replace the CN field of the mimicing subject with the given
+    bool setCommonName; ///< Replace the CN field of the mimicking subject with the given
     std::string commonName; ///< A CN to use for the generated certificate
     CertSignAlgorithm signAlgorithm; ///< The signing algorithm to use
     const EVP_MD *signHash; ///< The signing hash to use
index 572d3c121615f7945701d7de43cca15a25c515ce..c3974c8c9a682fdd4b844ff87b62438a7f22f0c3 100644 (file)
@@ -353,7 +353,7 @@ ssl_verify_cb(int ok, X509_STORE_CTX * ctx)
                 filledCheck->serverCert.reset();
             }
             // If the certificate validator is used then we need to allow all errors and
-            // pass them to certficate validator for more processing
+            // pass them to certificate validator for more processing
             else if (Ssl::TheConfig.ssl_crt_validator) {
                 ok = 1;
             }
@@ -1101,7 +1101,7 @@ completeIssuers(X509_STORE_CTX *ctx, STACK_OF(X509) *untrustedCerts)
     for (i = 0; current && (i < depth); ++i) {
         if (X509_check_issued(current, current) == X509_V_OK) {
             // either ctx->cert is itself self-signed or untrustedCerts
-            // aready contain the self-signed current certificate
+            // already contain the self-signed current certificate
             break;
         }
 
index a535b6e3e42576a3886eec4e25dc704dbc5458e5..7401149b81e1c0407ae2b1232679919789a2ec17 100644 (file)
@@ -260,7 +260,7 @@ void configureUnconfiguredSslContext(Security::ContextPointer &, Ssl::CertSignAl
 
 /**
   \ingroup ServerProtocolSSLAPI
-  * Generates a certificate and a private key using provided properies and set it
+  * Generates a certificate and a private key using provided properties and set it
   * to SSL object.
  */
 bool configureSSL(SSL *ssl, CertificateProperties const &properties, AnyP::PortCfg &port);
index 4a1e7500e8d02ccef54b4a106077450ea5883904..458f6e46734236964ac9e4e055ab05e0e3aec534 100644 (file)
@@ -256,7 +256,7 @@ mem_hdr::copy(StoreIOBuffer const &target) const
     char *ptr_to_buf = target.data;
     int64_t location = target.offset;
 
-    /* Start copying begining with this block until
+    /* Start copying beginning with this block until
      * we're satiated */
 
     while (p && bytes_to_go > 0) {
@@ -292,7 +292,7 @@ mem_hdr::hasContigousContentRange(Range<int64_t> const & range) const
             return true;
     }
 
-    return !range.size(); // empty range is contigous
+    return !range.size(); // empty range is contiguous
 }
 
 bool
index f4d61d5121a3c15c300823b22fd656127a93e900..c30929a2e200febb37b1b251e1f9d75cc8e61698 100644 (file)
@@ -36,7 +36,7 @@ public:
     mem_node const *start() const;
     mem_node *getBlockContainingLocation (int64_t location) const;
     /* access the contained nodes - easier than punning
-     * as a contianer ourselves
+     * as a container ourselves
      */
     const Splay<mem_node *> &getNodes() const;
     char * NodeGet(mem_node * aNode);
index 80a38b4c091ed90b0c4368524957c505ae6ce60e..b37f745c12dae7999fd6a7962a3feb3e5efd80ef 100644 (file)
@@ -853,7 +853,7 @@ StoreEntry::vappendf(const char *fmt, va_list vargs)
     va_list ap;
     /* Fix of bug 753r. The value of vargs is undefined
      * after vsnprintf() returns. Make a copy of vargs
-     * incase we loop around and call vsnprintf() again.
+     * in case we loop around and call vsnprintf() again.
      */
     va_copy(ap,vargs);
     errno = 0;
index ef18b8a85ebff7623122c53657c08d0e51ccb7cb..028a5ecb911bd5eb1fdf3877d396688f184063cd 100644 (file)
@@ -28,7 +28,7 @@
  * store_dirs_rebuilding is initialized to _1_ as a hack so that
  * storeDirWriteCleanLogs() doesn't try to do anything unless _all_
  * cache_dirs have been read.  For example, without this hack, Squid
- * will try to write clean log files if -kparse fails (becasue it
+ * will try to write clean log files if -kparse fails (because it
  * calls fatal()).
  */
 int Store::Controller::store_dirs_rebuilding = 1;
@@ -227,12 +227,12 @@ Store::Controller::sync(void)
 }
 
 /*
- * handle callbacks all avaliable fs'es
+ * handle callbacks all available fs'es
  */
 int
 Store::Controller::callback()
 {
-    /* This will likely double count. Thats ok. */
+    /* This will likely double count. That's ok. */
     PROF_start(storeDirCallback);
 
     /* mem cache callbacks ? */
index 150d5a17fa9300fce21a3f2563c6e551022ff41b..e74eb89c3139ab46cad02440dff3ec8abace4ae1 100644 (file)
@@ -470,7 +470,7 @@ Store::Disks::maintain()
     /* walk each fs */
 
     for (i = 0; i < Config.cacheSwap.n_configured; ++i) {
-        /* XXX FixMe: This should be done "in parallell" on the different
+        /* XXX FixMe: This should be done "in parallel" on the different
          * cache_dirs, not one at a time.
          */
         /* call the maintain function .. */
index c95fcc3399811e4f090837317cc636cf16818329..ae1b07fc59cdd620d84db43bd89500bf4bc65103 100644 (file)
@@ -32,7 +32,7 @@
 
 /*
  * NOTE: 'Header' refers to the swapfile metadata header.
- *   'OBJHeader' refers to the object header, with cannonical
+ *   'OBJHeader' refers to the object header, with canonical
  *   processed object headers (which may derive from FTP/HTTP etc
  *   upstream protocols
  *       'Body' refers to the swapfile body, which is the full
index fe384d3b009a15afdd7ae6c96f8dd2771a06ebd4..ce52c7bec2956dcc4704281759558cd783649456 100644 (file)
@@ -310,7 +310,7 @@ SBufFindTest::placementKey() const
         return std::string();
 
     if (theBareNeedlePos == 0)
-        return "@B"; // at the beggining of the hay string
+        return "@B"; // at the beginning of the hay string
     if (theBareNeedlePos == theStringHay.length()-theStringNeedle.length())
         return "@E"; // at the end of the hay string
     return "@M"; // in the "middle" of the hay string
index 2a130d0659652889855f1e48bac947acda358991..469f0a5bdaafb3dbc4c2634d8099650e69688ccc 100644 (file)
@@ -201,7 +201,7 @@ testEventLoop::testStopOnIdle()
     theLoop.run();
     CPPUNIT_ASSERT_EQUAL(2, engine.calls);
     /* add an engine which is suffering errors. This should result in 10
-     * loops until the loop stops - because thats the error retry amount
+     * loops until the loop stops - because that's the error retry amount
      */
     RecordingEngine failing_engine(AsyncEngine::EVENT_ERROR);
     theLoop.registerEngine(&failing_engine);
index 5796a19852889774e1952290001b93aaa6e98a4a..f487112c25cb9ea217c63e548e848c574877f5e1 100644 (file)
@@ -43,7 +43,7 @@ testHttpRequest::setUp()
 void
 testHttpRequest::testCreateFromUrl()
 {
-    /* vanilla url, implict method */
+    /* vanilla url, implicit method */
     unsigned short expected_port;
     SBuf url("http://foo:90/bar");
     const MasterXaction::Pointer mx = new MasterXaction(XactionInitiator::initClient);
index e244925524f88fe09d5d9ae6df4a789ea2a86a10..bbd803dc57971a8db82138abef54059d964710e2 100644 (file)
@@ -997,7 +997,7 @@ testSBuf::testSBufHash()
     CPPUNIT_ASSERT_EQUAL(hasher(literal),hasher(SBuf(fox)));
     CPPUNIT_ASSERT_EQUAL(hasher(SBuf(fox)),hasher(SBuf(fox)));
 
-    //differen content should have different hash
+    //different content should have different hash
     CPPUNIT_ASSERT(hasher(SBuf(fox)) != hasher(SBuf(fox1)));
 
     {
index c4a5e9c1aeebe67c4bf6daf6cdd65c7911062397..512910145c02d2f669c1f317ff62162a5eaf83f9 100644 (file)
@@ -186,7 +186,7 @@ squid_getrusage(struct rusage *r)
     // Windows has an alternative method if there is no POSIX getrusage defined.
     if (WIN32_OS_version >= _WIN_OS_WINNT) {
         /* On Windows NT and later call PSAPI.DLL for process Memory */
-        /* informations -- Guido Serassio                       */
+        /* information -- Guido Serassio                       */
         HANDLE hProcess;
         PROCESS_MEMORY_COUNTERS pmc;
         hProcess = OpenProcess(PROCESS_QUERY_INFORMATION |
@@ -495,7 +495,7 @@ uniqueHostname(void)
     return Config.uniqueHostname ? Config.uniqueHostname : getMyHostname();
 }
 
-/** leave a priviliged section. (Give up any privilegies)
+/** leave a privileged section. (Give up any privilegies)
  * Routines that need privilegies can rap themselves in enter_suid()
  * and leave_suid()
  * To give upp all posibilites to gain privilegies use no_suid()
@@ -594,7 +594,7 @@ enter_suid(void)
 #endif
 }
 
-/* Give up the posibility to gain privilegies.
+/* Give up the possibility to gain privilegies.
  * this should be used before starting a sub process
  */
 void
index 9a1cf7ca878bd4242c3ecb95165bf3116e911296..e9d538e234690050c7ed0fa4972bfb8fec7fc3f6 100644 (file)
@@ -96,7 +96,7 @@ typedef int PidStatus;
 
 /**
  * Compatibility wrapper function for waitpid
- * \pid the pid of child proccess to wait for.
+ * \pid the pid of child process to wait for.
  * \param status the exit status returned by waitpid
  * \param flags WNOHANG or 0
  */
index aa5ae9c574186ec3b791157a56abc8acf4d58561..96e437b83288eb655d519488ca63c441b1b29fc3 100644 (file)
@@ -459,7 +459,7 @@ static struct wccp2_service_list_t *wccp2_service_list_head = NULL;
 
 int empty_portlist[WCCP2_NUMPORTS] = {0, 0, 0, 0, 0, 0, 0, 0};
 
-/* END WCCP V2 PROTOCL TYPES DEFINITION */
+/* END WCCP V2 PROTOCOL TYPES DEFINITION */
 
 void wccp2_add_service_list(int service, int service_id, int service_priority,
                             int service_proto, int service_flags, int ports[], int security_type, char *password);
@@ -1635,7 +1635,7 @@ wccp2AssignBuckets(void *)
     /* number of caches */
 
     struct in_addr *cache_address;
-    /* Alternative assignement mask/values */
+    /* Alternative assignment mask/values */
     int num_maskval;
 
     struct wccp2_mask_element_t *mask_element;
@@ -1993,7 +1993,7 @@ wccp2AssignBuckets(void *)
 /**
  * Parse wccp2_return_method and wccp2_forwarding_method options
  * they can be '1' aka 'gre' or  '2' aka 'l2'
- * repesenting the integer numeric of the same.
+ * representing the integer numeric of the same.
  */
 void
 parse_wccp2_method(int *method)
@@ -2041,7 +2041,7 @@ free_wccp2_method(int *)
 /**
  * Parse wccp2_assignment_method option
  * they can be '1' aka 'hash' or  '2' aka 'mask'
- * repesenting the integer numeric of the same.
+ * representing the integer numeric of the same.
  */
 void
 parse_wccp2_amethod(int *method)
index 95ff47c3b0e30e53a6afbb25ff1b0b8c91eaab90..d08b4bb22685d628e2b3603fc4a5378aae22c016 100755 (executable)
@@ -61,7 +61,7 @@ if test "${FILECOUNT}" != "0" ; then
 fi
 
 #
-# above command currently encounters dependancy problems on cleanup.
+# above command currently encounters dependency problems on cleanup.
 #
 # do not build any of the install's ...
 #
index 8f7ee1fc57026a93defd77db4411d514aa7491b6..73745d50d3b900cb2479600f119ffbb0cefb9380 100755 (executable)
@@ -7,7 +7,7 @@
 ## Please see the COPYING and CONTRIBUTORS files for details.
 ##
 
-# test all header files (.h) for dependancy issues.
+# test all header files (.h) for dependency issues.
 #
 # Ideally this test should be performed twice before any code is accepted.
 # With or without inline enabled.  This is needed because the .cci files
index 942bf47f8bba411b4d28ae46ad662946b5879c06..8c59629324e59977fbe9dff0ad651fe91303432d 100644 (file)
@@ -144,7 +144,7 @@ int Win32SockInit(void)
     } else if (s_iInitCount < 0)
         return (s_iInitCount);
 
-    /* s_iInitCount == 0. Do the initailization */
+    /* s_iInitCount == 0. Do the initialization */
     iVersionRequested = MAKEWORD(2, 0);
 
     err = WSAStartup((WORD) iVersionRequested, &wsaData);
@@ -651,7 +651,7 @@ read_reply(int s, cachemgr_request * req)
 
             if (status == 401 || status == 407) {
                 reset_auth(req);
-                status = 403;   /* Forbiden, see comments in case isForward: */
+                status = 403;   /* Forbidden, see comments in case isForward: */
             }
 
             /* this is a way to pass HTTP status to the Web server */
index 6260fb234ea7a7ec7c3a1635268169d5239ad95d..3ca9730b60ed69b29cd25dea2f3390db1ae6c88c 100644 (file)
@@ -54,7 +54,7 @@
 //
 // Revision 1.12  2000/03/29 07:54:41  voeckler
 // added mechanism to give a port specification precedence over a host
-// specificiation with the -p option and not colon.
+// specification with the -p option and not colon.
 //
 // Revision 1.11  1999/06/18 13:18:28  voeckler
 // added refcount, fixed missing LF in -s output.
@@ -203,7 +203,7 @@ concat( const char* start, ... )
 // purpose: concatinate an arbitrary number of C strings.
 // paramtr: start (IN): first C string
 //          ... (IN): further C strings, terminated with a NULL pointer
-// returns: memory allocated via new(), containing the concatinated string.
+// returns: memory allocated via new(), containing the concatenated string.
 {
     va_list ap;
     const char* s;
@@ -303,7 +303,7 @@ log_extended( const char* fn, int code, long size, const SquidMetaList* meta )
     }
 }
 
-// o.k., this is pure lazyness...
+// o.k., this is pure laziness...
 static struct in_addr serverHost;
 static unsigned short serverPort;
 
@@ -413,7 +413,7 @@ match( const char* fn, const REList* list )
             ::linebuffer[ ::buffersize-1 ] = '\0'; // force-terminate string
 
             // check the offset into the start of object data. The offset is
-            // stored in a host endianess after the first byte.
+            // stored in a host endianness after the first byte.
             unsigned int datastart;
             memcpy( &datastart, ::linebuffer + 1, sizeof(unsigned int) );
             if ( datastart > ::buffersize - addon - 1 ) {
index 5256b7214b71e1624b113f26efcc3da997c58e34..7557f89b4b65287a341046048794030b31737804 100644 (file)
@@ -127,7 +127,7 @@ commonCode( int& sockfd, bool nodelay, int sendBufferSize, int recvBufferSize )
 //          nodelay (IN): true=set TCP_NODELAY option.
 //          sendBufferSize (IN): don't set (use sys defaults) if < 0
 //          recvBufferSize (IN): don't set (use sys defaults) if < 0
-// returns: 0 == if everthing went ok, -1 otherwise
+// returns: 0 == if everything went ok, -1 otherwise
 // warning: sockfd will be closed, if -1 is returned!
 {
     // set TCP_NODELAY option, if that is wanted.
index 612faa3494c2a574e038bcd7b31b2e11f9081c21..08c0dbfdbb9d7fe67529ffbcc1345a83a6bcd99e 100644 (file)
@@ -50,7 +50,7 @@ inline bool LoopDone(int i)
 /// start timing a new transaction
 void TimerStart();
 
-/// calculate and display the statictics for a complete transaction
+/// calculate and display the statistics for a complete transaction
 /// \param fsize number of bytes transferred during this transaction (for KB/s measure)
 void TimerStop(size_t fsize);
 
index 091cb36ae9afb56ec4de8df7dd5e9b2f38209608..164c3404ce5a172f4343b464c2c139900b160939 100644 (file)
@@ -58,7 +58,7 @@ public:
     /// port on the server to contact
     uint16_t port;
 
-    /// whether to enable TLS on the server connnection
+    /// whether to enable TLS on the server connection
     bool tlsEnabled;
 
     /// whether to do anonymous TLS (non-authenticated)