-/* $Id: cache_cf.cc,v 1.7 1996/03/27 18:50:20 wessels Exp $ */
+/* $Id: cache_cf.cc,v 1.8 1996/03/27 18:50:57 wessels Exp $ */
#include "squid.h"
#define DefaultNeighborTimeout 2 /* 2 seconds */
#define DefaultStallDelay 3 /* 3 seconds */
#define DefaultSingleParentBypass 0 /* default off */
-#define DefaultPidFilename (char *)NULL /* default NONE */
+#define DefaultPidFilename (char *)NULL /* default NONE */
extern char *config_file;
-/* $Id: debug.cc,v 1.7 1996/03/27 18:50:22 wessels Exp $ */
+/* $Id: debug.cc,v 1.8 1996/03/27 18:50:58 wessels Exp $ */
#include "squid.h"
}
xfree(p);
}
-
debugOpenLog(logfile);
#if HAVE_SYSLOG
-/* $Id: main.cc,v 1.11 1996/03/27 18:50:23 wessels Exp $ */
+/* $Id: main.cc,v 1.12 1996/03/27 18:50:59 wessels Exp $ */
#include "squid.h"
static void usage()
{
- fprintf(stderr, "\
+ fprintf(stderr, "\
Usage: cached [-Rsehvz] [-f config-file] [-[apu] port]\n\
-h Print help message.\n\
-s Enable logging to syslog.\n\
$HARVEST_HOME/lib/cached.conf.\n\
-a port Specify ASCII port number (default: %d).\n\
-u port Specify UDP port number (default: %d).\n",
- CACHE_HTTP_PORT, CACHE_ICP_PORT);
- exit(1);
+ CACHE_HTTP_PORT, CACHE_ICP_PORT);
+ exit(1);
}
int main(argc, argv)
-/* $Id: tools.cc,v 1.11 1996/03/27 18:50:24 wessels Exp $ */
+/* $Id: tools.cc,v 1.12 1996/03/27 18:50:59 wessels Exp $ */
#include "squid.h"
if ((f = getPidFilename()) == NULL)
return;
if ((pid_fp = fopen(f, "w")) == NULL) {
- debug(0,0,"WARNING: Could not write pid file\n");
- debug(0,0," %s: %s\n", f, xstrerror());
- return;
+ debug(0, 0, "WARNING: Could not write pid file\n");
+ debug(0, 0, " %s: %s\n", f, xstrerror());
+ return;
}
fprintf(pid_fp, "%d\n", (int) getpid());
fclose(pid_fp);