/*
- * $Id: cache_cf.cc,v 1.59 1996/07/11 22:44:11 wessels Exp $
+ * $Id: cache_cf.cc,v 1.60 1996/07/15 23:11:54 wessels Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
int zap_disk_store = 0; /* off, try to rebuild from disk */
int httpd_accel_mode = 0; /* for fast access */
int emulate_httpd_log = DefaultCommonLogFormat; /* for fast access */
-int identLookup = DefaultIdentLookup; /* for fast access */
+int identLookup = DefaultIdentLookup; /* for fast access */
time_t neighbor_timeout = DefaultNeighborTimeout; /* for fast access */
int single_parent_bypass = 0;
int DnsPositiveTtl = DefaultPositiveDnsTtl;
}
static void parseOnOff(var)
- int *var;
+ int *var;
{
char *token;
token = strtok(NULL, w_space);
/*
- * $Id: http.cc,v 1.60 1996/07/12 17:39:00 wessels Exp $
+ * $Id: http.cc,v 1.61 1996/07/15 23:15:16 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
}
static int httpConnect(fd, hp, data)
- int fd;
- struct hostent *hp;
- void *data;
+ int fd;
+ struct hostent *hp;
+ void *data;
{
HttpStateData *httpState = data;
request_t *request = httpState->request;
squid_error_entry(entry, ERR_CONNECT_FAIL, xstrerror());
comm_close(fd);
if ((e = httpState->neighbor)) {
- e->last_fail_time = squid_curtime;
- e->neighbor_up = 0;
+ e->last_fail_time = squid_curtime;
+ e->neighbor_up = 0;
}
return COMM_ERROR;
} else {
/*
- * $Id: stmem.cc,v 1.11 1996/07/12 17:41:51 wessels Exp $
+ * $Id: stmem.cc,v 1.12 1996/07/15 23:16:41 wessels Exp $
*
* DEBUG: section 19 Memory Primitives
* AUTHOR: Harvest Derived
#define USE_MEMALIGN 0
#endif
-static void *get_free_thing _PARAMS((stmem_stats *thing));
-static void put_free_thing _PARAMS((stmem_stats *thing, void *p));
+static void *get_free_thing _PARAMS((stmem_stats * thing));
+static void put_free_thing _PARAMS((stmem_stats * thing, void *p));
void memFree(mem)
}
static void *get_free_thing(thing)
- stmem_stats *thing;
+ stmem_stats *thing;
{
void *p = NULL;
if (!empty_stack(&thing->free_page_stack)) {
- p = pop(&thing->free_page_stack);
- if (p == NULL)
+ p = pop(&thing->free_page_stack);
+ if (p == NULL)
fatal_dump("get_free_thing: NULL pointer?");
} else {
- p = xmalloc(thing->page_size);
+ p = xmalloc(thing->page_size);
thing->total_pages_allocated++;
}
thing->n_pages_in_use++;
}
static void put_free_thing(thing, p)
- stmem_stats *thing;
- void *p;
+ stmem_stats *thing;
+ void *p;
{
thing->n_pages_in_use--;
if (thing->total_pages_allocated > thing->max_pages) {
xfree(p);
thing->total_pages_allocated--;
} else {
- push(&thing->free_page_stack, p);
+ push(&thing->free_page_stack, p);
}
}