]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Indent
authorhno <>
Thu, 22 Aug 2002 18:29:15 +0000 (18:29 +0000)
committerhno <>
Thu, 22 Aug 2002 18:29:15 +0000 (18:29 +0000)
src/cf_gen.cc
src/external_acl.cc
src/peer_digest.cc
src/tools.cc
src/whois.cc

index 2e8a5af3d0908c7895cb436313aabac6040ceea7..2527bd5097507af8c18fe1268af79898c2c09af9 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cf_gen.cc,v 1.44 2002/07/17 15:15:21 hno Exp $
+ * $Id: cf_gen.cc,v 1.45 2002/08/22 12:29:15 hno Exp $
  *
  * DEBUG: none          Generate squid.conf.default and cf_parser.h
  * AUTHOR: Max Okumoto
@@ -183,7 +183,7 @@ main(int argc, char *argv[])
                }
                curr = calloc(1, sizeof(Entry));
                curr->name = xstrdup(name);
-               while((aliasname = strtok(NULL, WS)) != NULL) {
+               while ((aliasname = strtok(NULL, WS)) != NULL) {
                    EntryAlias *alias = calloc(1, sizeof(EntryAlias));
                    alias->next = curr->alias;
                    alias->name = xstrdup(aliasname);
@@ -496,7 +496,7 @@ gen_parse(Entry * head, FILE * fp)
            fprintf(fp, "#if %s\n", entry->ifdef);
        name = entry->name;
        alias = entry->alias;
-next_alias:
+      next_alias:
        fprintf(fp, "\telse if (!strcmp(token, \"%s\"))\n", name);
        assert(entry->loc);
        if (strcmp(entry->loc, "none") == 0) {
index a099c06f74db09a28a81a5faa10cf77e11b0b043..4f4e2bf057bc1973bf9200222b6f1c23c6886e3c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: external_acl.cc,v 1.8 2002/08/21 22:36:56 hno Exp $
+ * $Id: external_acl.cc,v 1.9 2002/08/22 12:29:15 hno Exp $
  *
  * DEBUG: section 82    External ACL
  * AUTHOR: Henrik Nordstrom, MARA Systems AB
@@ -234,8 +234,7 @@ parse_externalAclHelper(external_acl ** list)
                else
                    format->type = EXT_ACL_HEADER_ID;
            }
-       }
-       else if (strcmp(token, "%LOGIN") == 0) {
+       } else if (strcmp(token, "%LOGIN") == 0) {
            format->type = EXT_ACL_LOGIN;
            a->require_auth = 1;
        }
index 602224217914a54be2af79d69c031f51d1d422eb..e2347430975041f56bf51a63ce4a562ccdaa5857 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: peer_digest.cc,v 1.89 2002/06/18 22:52:32 hno Exp $
+ * $Id: peer_digest.cc,v 1.90 2002/08/22 12:29:15 hno Exp $
  *
  * DEBUG: section 72    Peer Digest Routines
  * AUTHOR: Alex Rousskov
@@ -123,7 +123,7 @@ peerDigestDestroy(PeerDigest * pd)
     assert(pd);
 
     /* inform peer (if any) that we are gone */
-    if (cbdataReferenceValidDone(pd->peer, (void **)&p))
+    if (cbdataReferenceValidDone(pd->peer, (void **) &p))
        peerNoteDigestGone(p);
 
     peerDigestClean(pd);
@@ -362,7 +362,7 @@ peerDigestHandleReply(void *data, char *buf, ssize_t copysize)
     /* Give us a temporary reference. Some of the calls we make may
      * try to destroy the fetch structure, and we like to know if they
      * do
-     */ 
+     */
     fetch = cbdataReference(fetch);
 
     /* Repeat this loop until we're out of data OR the state changes */
@@ -623,7 +623,7 @@ peerDigestFetchedEnough(DigestFetchState * fetch, char *buf, ssize_t size, const
     if (!reason) {
        if (!(pd = fetch->pd))
            reason = "peer digest disappeared?!";
-#if DONT /* WHY NOT? /HNO */
+#if DONT                       /* WHY NOT? /HNO */
        else if (!cbdataReferenceValid(pd))
            reason = "invalidated peer digest?!";
 #endif
@@ -631,7 +631,7 @@ peerDigestFetchedEnough(DigestFetchState * fetch, char *buf, ssize_t size, const
            host = strBuf(pd->host);
     }
     debug(72, 6) ("%s: peer %s, offset: %d size: %d.\n",
-       step_name, host, 
+       step_name, host,
        fetch->offset, size);
 
     /* continue checking (with pd and host known and valid) */
index d347f36e86e3c75226496da468ee835bd54f2d50..7334772a5899cb78cd09f2a7da9869e7f144017a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.219 2002/04/27 22:54:49 hno Exp $
+ * $Id: tools.cc,v 1.220 2002/08/22 12:29:15 hno Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -1003,5 +1003,5 @@ getMyPort(void)
        return ntohs(Config.Sockaddr.https->s.sin_port);
 #endif
     fatal("No port defined");
-    return 0; /* NOT REACHED */
+    return 0;                  /* NOT REACHED */
 }
index 78b8f6878ff87341221e32e434bd7b2fca13b61a..a78916f4aae23dfccb826d7d1fac85ac691d67a4 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: whois.cc,v 1.17 2002/06/14 19:31:22 hno Exp $
+ * $Id: whois.cc,v 1.18 2002/08/22 12:29:15 hno Exp $
  *
  * DEBUG: section 75    WHOIS protocol
  * AUTHOR: Duane Wessels, Kostas Anagnostakis
@@ -121,7 +121,7 @@ whoisReadReply(int fd, void *data)
     } else {
        storeTimestampsSet(entry);
        storeBufferFlush(entry);
-       if ( !EBIT_TEST(entry->flags, RELEASE_REQUEST ) )
+       if (!EBIT_TEST(entry->flags, RELEASE_REQUEST))
            storeSetPublicKey(entry);
        fwdComplete(p->fwd);
        debug(75, 3) ("whoisReadReply: Done: %s\n", storeUrl(entry));