-/* $Id: cache_cf.cc,v 1.39 1996/04/15 19:20:23 wessels Exp $ */
+/* $Id: cache_cf.cc,v 1.40 1996/04/15 22:50:41 wessels Exp $ */
/* DEBUG: Section 3 cache_cf: Configuration file parsing */
if (!strcasecmp(token, "proxy-only")) {
proxy_only = 1;
} else if (!strcasecmp(token, "weight=")) {
- weight = atoi(token+7);
+ weight = atoi(token + 7);
} else {
- self_destruct();
+ self_destruct();
}
}
neighbors_cf_add(hostname, type, ascii_port, udp_port, proxy_only, weight);
-/* $Id: debug.cc,v 1.14 1996/04/15 18:01:19 wessels Exp $ */
+/* $Id: debug.cc,v 1.15 1996/04/15 22:51:20 wessels Exp $ */
#include "squid.h"
xfree(debug_log_file);
debug_log_file = xstrdup(logfile); /* keep a static copy */
if (debug_log)
- fclose(debug_log);
+ fclose(debug_log);
debug_log = fopen(logfile, "a+");
if (!debug_log) {
fprintf(stderr, "WARNING: Cannot write log file: %s\n", logfile);
-/* $Id: neighbors.cc,v 1.18 1996/04/15 19:20:25 wessels Exp $ */
+/* $Id: neighbors.cc,v 1.19 1996/04/15 22:53:46 wessels Exp $ */
/* TODO:
* - change 'neighbor' to 'sibling'
m->w_rtt = w_rtt;
}
}
-
if (m->e_pings_n_acks == m->e_pings_n_pings) {
BIT_SET(entry->flag, ENTRY_DISPATCHED);
entry->ping_status = DONE;
int ascii_port;
int udp_port;
int proxy_only;
- int weight;
+ int weight;
{
struct neighbor_cf *t, *u;
-/* $Id: tools.cc,v 1.32 1996/04/15 19:20:27 wessels Exp $ */
+/* $Id: tools.cc,v 1.33 1996/04/15 22:54:55 wessels Exp $ */
/*
* DEBUG: Section 21 tools
debug(21, 1, "Preparing for shutdown...\n");
serverConnectionsClose();
ipcacheShutdownServers();
- for(i=fdstat_biggest_fd(); i >= 0; i--) {
+ for (i = fdstat_biggest_fd(); i >= 0; i--) {
f = &fd_table[i];
if (f->read_handler || f->write_handler || f->except_handler)
- comm_set_fd_lifetime(i, 30);
+ comm_set_fd_lifetime(i, 30);
}
shutdown_pending = 1;
/* reinstall signal handler? */
#endif
}
-int tvSubMsec (t1, t2)
- struct timeval t1;
- struct timeval t2;
+int tvSubMsec(t1, t2)
+ struct timeval t1;
+ struct timeval t2;
{
return (t2.tv_sec - t1.tv_sec) * 1000 +
- (t2.tv_usec - t1.tv_usec) / 1000;
+ (t2.tv_usec - t1.tv_usec) / 1000;
}