/*
- * $Id: acl.cc,v 1.179 1998/08/18 21:04:42 wessels Exp $
+ * $Id: acl.cc,v 1.180 1998/08/20 22:29:53 wessels Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
}
static wordlist *
-aclDumpIpList(void * data)
+aclDumpIpList(void *data)
{
wordlist *w = NULL;
splay_walk(data, aclDumpIpListWalkee, &w);
{
const unsigned short *d1 = data;
const unsigned short *d2 = n->data;
- if(d1[0] != d2[0])
- return (d1[0] > d2[0]) ? 1 : -1;
- if(d1[1] != d2[1])
- return (d1[1] > d2[1]) ? 1 : -1;
- if(d1[2] != d2[2])
- return (d1[2] > d2[2]) ? 1 : -1;
+ if (d1[0] != d2[0])
+ return (d1[0] > d2[0]) ? 1 : -1;
+ if (d1[1] != d2[1])
+ return (d1[1] > d2[1]) ? 1 : -1;
+ if (d1[2] != d2[2])
+ return (d1[2] > d2[2]) ? 1 : -1;
return 0;
}
arpReq.arp_flags = 0;
/* any AF_INET socket will do... gives back hardware type, device, etc */
if (ioctl(HttpSockets[0], SIOCGARP, &arpReq) == -1) {
- debug(28, 1) ("ARP query failed - %d", errno);
+ debug(28, 1) ("ARP query failed - %d", errno);
return 0;
} else if (arpReq.arp_ha.sa_family != ARPHRD_ETHER) {
debug(28, 1) ("Non-ethernet interface returned from ARP query - %d",
static int
aclMatchArp(void *dataptr, struct in_addr c)
{
- WRITE ME;
+ WRITE ME;
}
static int
aclArpCompare(const void *data, splayNode * n)
{
- WRITE ME;
+ WRITE ME;
}
static int
}
static wordlist *
-aclDumpArpList(void * data)
+aclDumpArpList(void *data)
{
wordlist *w = NULL;
splay_walk(data, aclDumpArpListWalkee, &w);
/*
- * $Id: authenticate.cc,v 1.1 1998/08/18 02:56:42 wessels Exp $
+ * $Id: authenticate.cc,v 1.2 1998/08/20 22:29:54 wessels Exp $
*
* DEBUG: section 29 Authenticator
* AUTHOR: Duane Wessels
if (!handler)
fatal_dump("authenticateStart: NULL handler");
debug(29, 5) ("authenticateStart: '%s:%s'\n", auth_user->user,
- auth_user->passwd);
+ auth_user->passwd);
if (Config.Program.authenticate == NULL) {
handler(data, NULL);
return;
EBIT_SET(authenticate->flags, HELPER_BUSY);
}
if (na)
- eventAdd("authenticateShutdownServers", authenticateShutdownServers, NULL, 1.0, 1);
+ eventAdd("authenticateShutdownServers", authenticateShutdownServers, NULL, 1.0, 1);
}
int
/*
- * $Id: debug.cc,v 1.70 1998/08/19 22:23:48 wessels Exp $
+ * $Id: debug.cc,v 1.71 1998/08/20 22:29:55 wessels Exp $
*
* DEBUG: section 0 Debug Routines
* AUTHOR: Harvest Derived
if (_db_level <= 1 && opt_syslog_enable) {
tmpbuf[0] = '\0';
vsnprintf(tmpbuf, BUFSIZ, format, args);
- tmpbuf[BUFSIZ-1] = '\0';
+ tmpbuf[BUFSIZ - 1] = '\0';
syslog(_db_level == 0 ? LOG_WARNING : LOG_NOTICE, "%s", tmpbuf);
}
#endif /* HAVE_SYSLOG */
/*
- * $Id: delay_pools.cc,v 1.3 1998/08/17 16:44:03 wessels Exp $
+ * $Id: delay_pools.cc,v 1.4 1998/08/20 22:29:56 wessels Exp $
*
* DEBUG: section 77 Delay Pools
* AUTHOR: David Luyer <luyer@ucs.uwa.edu.au>
if (sc->type != STORE_MEM_CLIENT)
continue;
i = delayBytesWanted(sc->delay_id, i, max);
- found = 1;
+ found = 1;
}
return found ? i : max;
}
/*
- * $Id: disk.cc,v 1.129 1998/08/20 16:04:07 wessels Exp $
+ * $Id: disk.cc,v 1.130 1998/08/20 22:29:57 wessels Exp $
*
* DEBUG: section 6 Disk I/O Routines
* AUTHOR: Harvest Derived
diskHandleWrite(fd, NULL);
#else
#ifdef OPTIMISTIC_IO
- if (F->flags.calling_io_handler)
+ if (F->flags.calling_io_handler)
#endif
- commSetSelect(fd, COMM_SELECT_WRITE, diskHandleWrite, NULL, 0);
+ commSetSelect(fd, COMM_SELECT_WRITE, diskHandleWrite, NULL, 0);
#ifdef OPTIMISTIC_IO
- else
- diskHandleWrite(fd, NULL);
+ else
+ diskHandleWrite(fd, NULL);
#endif
#endif
#ifndef OPTIMISTIC_IO
* the state data.
*/
if (fd < 0) {
- memFree(MEM_DREAD_CTRL, ctrl_dat);
+ memFree(MEM_DREAD_CTRL, ctrl_dat);
return;
}
#if USE_ASYNC_IO
}
len = read(fd, ctrl_dat->buf, ctrl_dat->req_len);
if (len > 0)
- F->disk.offset += len;
+ F->disk.offset += len;
diskHandleReadComplete(fd, ctrl_dat, len, errno);
#endif
}
if (F->flags.calling_io_handler)
commSetSelect(fd, COMM_SELECT_READ, diskHandleRead, ctrl_dat, 0);
else
- diskHandleRead(fd, ctrl_dat);
+ diskHandleRead(fd, ctrl_dat);
#endif /* OPTIMISTIC_IO */
#endif
return DISK_OK;
/*
- * $Id: enums.h,v 1.119 1998/08/19 06:05:51 wessels Exp $
+ * $Id: enums.h,v 1.120 1998/08/20 22:29:58 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
ENTRY_UNUSED_08,
#else
ENTRY_FWD_HDR_WAIT,
-#endif /* PPNR_WIP */
+#endif /* PPNR_WIP */
ENTRY_NEGCACHED,
ENTRY_VALIDATED,
ENTRY_BAD_LENGTH
/*
- * $Id: http.cc,v 1.310 1998/08/20 22:21:02 wessels Exp $
+ * $Id: http.cc,v 1.311 1998/08/20 22:29:59 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
httpProcessReplyHeader(httpState, buf, len);
#ifdef PPNR_WIP
if (httpState->reply_hdr_state == 2)
- storePPNR(entry);
+ storePPNR(entry);
}
#endif /* PPNR_WIP */
storeAppend(entry, buf, len);
/*
- * $Id: peer_select.cc,v 1.74 1998/08/19 23:10:30 wessels Exp $
+ * $Id: peer_select.cc,v 1.75 1998/08/20 22:30:00 wessels Exp $
*
* DEBUG: section 44 Peer Selection Algorithm
* AUTHOR: Duane Wessels
return;
}
if ((p = getSingleParent(request))) {
- psstate->single_parent = p->in_addr;
+ psstate->single_parent = p->in_addr;
debug(44, 3) ("peerSelect: found single parent, skipping ICP query\n");
}
#if USE_CACHE_DIGESTS
/*
- * $Id: ssl.cc,v 1.87 1998/08/17 16:44:11 wessels Exp $
+ * $Id: ssl.cc,v 1.88 1998/08/20 22:30:01 wessels Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
}
#if DELAY_POOLS
/* If this was allowed to return 0, there would be a possibility
- * of the socket becoming "hung" with data accumulating but no
- * write handler (server.len==0) and no read handler (!(0<0)) and
- * no data flowing in the other direction. Hence the argument of
- * 1 as min.
- */
+ * of the socket becoming "hung" with data accumulating but no
+ * write handler (server.len==0) and no read handler (!(0<0)) and
+ * no data flowing in the other direction. Hence the argument of
+ * 1 as min.
+ */
read_sz = delayBytesWanted(sslState->request->delay_id, 1, read_sz);
#endif
if (sslState->server.len < read_sz) {
/*
- * $Id: stat.cc,v 1.278 1998/08/16 06:35:17 wessels Exp $
+ * $Id: stat.cc,v 1.279 1998/08/20 22:30:02 wessels Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
/* we have an hours worth of readings. store previous hour */
StatCounters *t = &CountHourHist[0];
StatCounters *p = &CountHourHist[1];
- StatCounters *c = &CountHist[N_COUNT_HIST-1];
+ StatCounters *c = &CountHist[N_COUNT_HIST - 1];
statCountersClean(CountHourHist + N_COUNT_HOUR_HIST - 1);
xmemmove(p, t, (N_COUNT_HOUR_HIST - 1) * sizeof(StatCounters));
statCountersCopy(t, c);
/*
- * $Id: store.cc,v 1.446 1998/08/19 06:05:55 wessels Exp $
+ * $Id: store.cc,v 1.447 1998/08/20 22:30:04 wessels Exp $
*
* DEBUG: section 20 Storage Manager
* AUTHOR: Harvest Derived
debug(20, 3) ("destroy_MemObject: destroying %p\n", mem);
e->mem_obj = NULL;
if (!shutting_down)
- assert(mem->swapout.fd == -1);
+ assert(mem->swapout.fd == -1);
stmemFree(&mem->data_hdr);
mem->inmem_hi = 0;
/* XXX account log_url */
}
void
-storePPNR(StoreEntry *e)
+storePPNR(StoreEntry * e)
{
- assert(EBIT_TEST(e->flag, ENTRY_FWD_HDR_WAIT));
- EBIT_CLR(e->flag, ENTRY_FWD_HDR_WAIT);
+ assert(EBIT_TEST(e->flag, ENTRY_FWD_HDR_WAIT));
+ EBIT_CLR(e->flag, ENTRY_FWD_HDR_WAIT);
#endif /* PPNR_WIP */
}
/*
- * $Id: store_client.cc,v 1.38 1998/08/19 06:05:56 wessels Exp $
+ * $Id: store_client.cc,v 1.39 1998/08/20 22:30:05 wessels Exp $
*
* DEBUG: section 20 Storage Manager Client-Side Interface
* AUTHOR: Duane Wessels
storeClientReadHeader,
sc);
#ifndef OPTIMISTIC_IO
- else {
+ else {
#else
} else {
#endif
/*
- * $Id: tunnel.cc,v 1.87 1998/08/17 16:44:11 wessels Exp $
+ * $Id: tunnel.cc,v 1.88 1998/08/20 22:30:01 wessels Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
}
#if DELAY_POOLS
/* If this was allowed to return 0, there would be a possibility
- * of the socket becoming "hung" with data accumulating but no
- * write handler (server.len==0) and no read handler (!(0<0)) and
- * no data flowing in the other direction. Hence the argument of
- * 1 as min.
- */
+ * of the socket becoming "hung" with data accumulating but no
+ * write handler (server.len==0) and no read handler (!(0<0)) and
+ * no data flowing in the other direction. Hence the argument of
+ * 1 as min.
+ */
read_sz = delayBytesWanted(sslState->request->delay_id, 1, read_sz);
#endif
if (sslState->server.len < read_sz) {