]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Sun, 28 Nov 2010 01:15:27 +0000 (18:15 -0700)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Sun, 28 Nov 2010 01:15:27 +0000 (18:15 -0700)
src/comm/IoCallback.h
src/comm/Write.cc
src/comm/Write.h
src/tunnel.cc

index 0c390567ba851023fe175b9ca8cad11d866e2fc0..9ce281a0ec431ace0cea377ce2264c7a88bb69c0 100644 (file)
@@ -5,7 +5,8 @@
 #include "base/AsyncCall.h"
 #include "comm_err_t.h"
 
-namespace Comm {
+namespace Comm
+{
 
 /// Type of IO callbacks the Comm layer deals with.
 typedef enum {
@@ -15,7 +16,8 @@ typedef enum {
 } iocb_type;
 
 /// Details about a particular Comm IO callback event.
-class IoCallback {
+class IoCallback
+{
 public:
     iocb_type type;
     int fd;
@@ -48,7 +50,8 @@ private:
 
 /// Entry nodes for the IO callback table: iocb_table
 /// Keyed off the FD which the event applies to.
-class CbEntry {
+class CbEntry
+{
 public:
     int fd;
     IoCallback  readcb;
index e906d99111692702de7476a5cac1f700a4c70206..822f503d74bd6dc07d0192edbcfbc362e1b0fe64 100644 (file)
@@ -65,7 +65,7 @@ Comm::HandleWrite(int fd, void *data)
         assert(clientInfo->quotaPeekFd() == fd);
         clientInfo->quotaDequeue(); // we will write or requeue below
 
-       if (nleft > 0) {
+        if (nleft > 0) {
             const int quota = clientInfo->quotaForDequed();
             if (!quota) {  // if no write quota left, queue this fd
                 state->quotaQueueReserv = clientInfo->quotaEnqueue(fd);
index 1d5dcdff9215b86b891ae199b58133e6524fae37..8300dc80ec421a1a5cb05fa98c5906142bb1b0a1 100644 (file)
@@ -3,7 +3,8 @@
 
 #include "base/AsyncCall.h"
 
-namespace Comm {
+namespace Comm
+{
 
 /**
  * Queue a write. callback is scheduled when the write
index c17d627844dd93b0d6e67160f0a9a093bdf8c8d8..269229b5d42ca13bf367390f3a33e9093efa2e0f 100644 (file)
@@ -324,7 +324,7 @@ TunnelStateData::copy (size_t len, comm_err_t errcode, int xerrno, Connection &f
         }
     } else if (cbdataReferenceValid(this)) {
         AsyncCall::Pointer call = commCbCall(5,5, "SomeTunnelWriteHandler",
-                                         CommIoCbPtrFun(completion, this));
+                                             CommIoCbPtrFun(completion, this));
         Comm::Write(to.fd(), from.buf, len, call, NULL);
     }