/*
- * $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
}
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);
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) {
/*
- * $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
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;
}
/*
- * $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
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);
/* 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 */
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
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) */
/*
- * $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
return ntohs(Config.Sockaddr.https->s.sin_port);
#endif
fatal("No port defined");
- return 0; /* NOT REACHED */
+ return 0; /* NOT REACHED */
}
/*
- * $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
} 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));