]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Fri, 22 Oct 2010 00:12:11 +0000 (18:12 -0600)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Fri, 22 Oct 2010 00:12:11 +0000 (18:12 -0600)
scripts/calc-must-ids.pl [changed mode: 0644->0755]
scripts/calc-must-ids.sh [changed mode: 0644->0755]
src/Server.cc
src/adaptation/icap/ModXact.cc
src/base/TextException.cc
src/base/TextException.h
src/err_detail_type.h
src/log/access_log.cc

old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 065b79b59ea4ae148e8b941b789422831543f71d..bb02d4c4439ce778a9f1352e8ec703c236920303 100644 (file)
@@ -770,8 +770,7 @@ ServerStateData::handleAdaptationAborted(bool bypassable)
         err->xerrno = ERR_DETAIL_ICAP_RESPMOD_EARLY;
         fwd->fail(err);
         fwd->dontRetry(true);
-    }
-    else if (request) { // update logged info directly
+    } else if (request) { // update logged info directly
         request->detailError(ERR_ICAP_FAILURE, ERR_DETAIL_ICAP_RESPMOD_LATE);
     }
 
index 48260bed79d19bf85512168032c91c4453cf4f9f..d1c9f9d77f851da853e979aa656b638a9b2fe8e5 100644 (file)
@@ -1841,7 +1841,7 @@ bool Adaptation::Icap::ModXact::fillVirginHttpHeader(MemBuf &mb) const
 void Adaptation::Icap::ModXact::detailError(int errDetail)
 {
     if (HttpRequest *request = virgin.cause ?
-        virgin.cause : dynamic_cast<HttpRequest*>(virgin.header)) {
+                               virgin.cause : dynamic_cast<HttpRequest*>(virgin.header)) {
         request->detailError(ERR_ICAP_FAILURE, errDetail);
     }
 }
index 04c0ab3359c351899d25504b6b93ab426d9ba9dc..6ec66b7794dfeb383cc3459e471b5281d574d713 100644 (file)
@@ -12,12 +12,12 @@ TextException::TextException()
 }
 
 TextException::TextException(const TextException& right) :
-    message((right.message?xstrdup(right.message):NULL)), theFileName(right.theFileName), theLineNo(right.theLineNo), theId(right.theId)
+        message((right.message?xstrdup(right.message):NULL)), theFileName(right.theFileName), theLineNo(right.theLineNo), theId(right.theId)
 {
 }
 
 TextException::TextException(const char *aMsg, const char *aFileName, int aLineNo, unsigned int anId):
-    message(xstrdup(aMsg)), theFileName(aFileName), theLineNo(aLineNo), theId(anId)
+        message(xstrdup(aMsg)), theFileName(aFileName), theLineNo(aLineNo), theId(anId)
 {}
 
 TextException::~TextException() throw()
@@ -43,13 +43,13 @@ const char *TextException::what() const throw()
 }
 
 unsigned int TextException::FileNameHash(const char *fname)
-{    
+{
     const char *s = NULL;
     unsigned int n = 0;
     unsigned int j = 0;
     unsigned int i = 0;
     s = strrchr(fname, '/');
-    
+
     if (s)
         s++;
     else
index c69e4726752357c69947c6156f2901a4f2b68392..b02c03d548b9cc18f1d1b18b0199fe5cd97ad6bd 100644 (file)
@@ -22,7 +22,7 @@ public:
 
     // unique exception ID for transaction error detail logging
     unsigned int id() const { return theId; }
-    
+
     virtual const char *what() const throw();
 
     TextException& operator=(const TextException &right);
@@ -38,7 +38,7 @@ protected:
     const char *theFileName;
     int theLineNo;
     unsigned int theId;
-    
+
     friend unsigned int FileNameHashCached(const char *fname);
 };
 
@@ -62,7 +62,8 @@ FileNameHashCached(const char *fname)
 }
 
 ///  Avoids "defined but not used" warnings for FileNameHashCached
-class FileNameHashCacheUser {
+class FileNameHashCacheUser
+{
     bool use(void *ptr=NULL) { return ptr != &FileNameHashCached;}
 };
 
index 7ebbbbf2599314f3a5fdf2a7e305162ee5384d6a..e683215c845468aab8e75d50c8822fb709fcae73 100644 (file)
@@ -21,13 +21,14 @@ typedef enum {
 extern const char *err_detail_type_str[];
 
 inline
-const char *errorDetailName(int errDetailId) {
+const char *errorDetailName(int errDetailId)
+{
     if (errDetailId < ERR_DETAIL_START)
         return "SYSERR";
 
     if (errDetailId < ERR_DETAIL_MAX)
         return err_detail_type_str[errDetailId-ERR_DETAIL_START+2];
-    
+
     if (errDetailId >=ERR_DETAIL_EXCEPTION_START)
         return "EXCEPTION";
 
index 54d5d1cedaa205c11192b87b71c6a74eb1c8d873..8eb8982e44cdd4c6689ac4592fec850d72a70595 100644 (file)
@@ -385,8 +385,8 @@ typedef enum {
     LFT_HTTP_BODY_BYTES_READ,
 
     LFT_SQUID_STATUS,
-    LFT_SQUID_ERROR, 
-    LFT_SQUID_ERROR_DETAIL, 
+    LFT_SQUID_ERROR,
+    LFT_SQUID_ERROR_DETAIL,
     LFT_SQUID_HIERARCHY,
 
     LFT_MIME_TYPE,
@@ -1136,7 +1136,7 @@ accessLogCustom(AccessLogEntry * al, customlog * log)
         case LFT_SQUID_ERROR_DETAIL:
             if (al->request && al->request->errDetail != ERR_DETAIL_NONE) {
                 if (al->request->errDetail > ERR_DETAIL_START  &&
-                    al->request->errDetail < ERR_DETAIL_MAX)
+                        al->request->errDetail < ERR_DETAIL_MAX)
                     out = errorDetailName(al->request->errDetail);
                 else {
                     if (al->request->errDetail >= ERR_DETAIL_EXCEPTION_START)