]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Sat, 21 Aug 2010 00:12:42 +0000 (18:12 -0600)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Sat, 21 Aug 2010 00:12:42 +0000 (18:12 -0600)
tools/purge/copyout.cc
tools/purge/purge.cc
tools/purge/signal.cc

index eb4987dd349547b50f72a776d8f91edc6f47e8f6..b1525f16f897f02145fd098b6deffd24e4de6aa7 100644 (file)
@@ -234,7 +234,7 @@ copy_out( size_t filesize, size_t metasize, unsigned debug,
     // seek end of output file ...
     off_t position = lseek( out, filesize-metasize-1, SEEK_SET );
     if ( position == -1 ) {
-        fprintf( stderr, "lseek(%s,%lu): %s\n", filename, 
+        fprintf( stderr, "lseek(%s,%lu): %s\n", filename,
                  (unsigned long)filesize-metasize,
                  strerror(errno) );
         BAUTZ(false);
index 3a905eb6635844d2c2b6800e97e3ee5fd20d368a..c18909a0ec8fac0c9a3242ad150f9aaf5cc45826 100644 (file)
@@ -282,15 +282,15 @@ log_extended( const char* fn, int code, long size, const SquidMetaList* meta )
         // make data aligned, avoid SIGBUS on RISC machines (ARGH!)
         memcpy( &temp, findings->data, sizeof(StoreMetaStd) );
         snprintf( timeb, sizeof(timeb), "%08lx %08lx %08lx %08lx %04x %5hu ",
-                 (unsigned long)temp.timestamp, (unsigned long)temp.lastref,
-                 (unsigned long)temp.expires, (unsigned long)temp.lastmod, temp.flags, temp.refcount );
+                  (unsigned long)temp.timestamp, (unsigned long)temp.lastref,
+                  (unsigned long)temp.expires, (unsigned long)temp.lastmod, temp.flags, temp.refcount );
     } else if ( meta && (findings = meta->search( STORE_META_STD_LFS )) ) {
         StoreMetaStdLFS temp;
         // make data aligned, avoid SIGBUS on RISC machines (ARGH!)
         memcpy( &temp, findings->data, sizeof(StoreMetaStd) );
         snprintf( timeb, sizeof(timeb), "%08lx %08lx %08lx %08lx %04x %5hu ",
-                 (unsigned long)temp.timestamp, (unsigned long)temp.lastref,
-                 (unsigned long)temp.expires, (unsigned long)temp.lastmod, temp.flags, temp.refcount );
+                  (unsigned long)temp.timestamp, (unsigned long)temp.lastref,
+                  (unsigned long)temp.expires, (unsigned long)temp.lastmod, temp.flags, temp.refcount );
     } else {
         snprintf( timeb, sizeof(timeb), "%08lx %08lx %08lx %08lx %04x %5hu ", (unsigned long)-1, (unsigned long)-1, (unsigned long)-1, (unsigned long)-1, 0, 0 );
     }
index 10f1c2ab3b9853241478932a35a34d94d7f134f9..774ea60a5053b2e5b239658666a2f91c2c759d5a 100644 (file)
@@ -115,19 +115,19 @@ sigChild( int signo )
     while ( (pid = waitpid( -1, &status, WNOHANG )) > 0 ) {
         if ( WIFEXITED(status) ) {
             fprintf( stderr, "child (pid=%ld) reaped, status %d\n%c",
-                      (long) pid, WEXITSTATUS(status), 0 );
+                     (long) pid, WEXITSTATUS(status), 0 );
         } else if ( WIFSIGNALED(status) ) {
             fprintf( stderr, "child (pid=%ld) died on signal %d%s\n%c",
-                      (long) pid, WTERMSIG(status),
+                     (long) pid, WTERMSIG(status),
 #ifdef WCOREDUMP
-                      WCOREDUMP(status) ? " (core generated)" : "",
+                     WCOREDUMP(status) ? " (core generated)" : "",
 #else
-                      "",
+                     "",
 #endif
-                      0 );
+                     0 );
         } else {
             fprintf( stderr, "detected dead child (pid=%ld), status %d\n%c",
-                      (long) pid, status, 0 );
+                     (long) pid, status, 0 );
         }
     }
     errno = saveerr;