/*
- * $Id: acl.cc,v 1.55 1996/11/01 21:24:58 wessels Exp $
+ * $Id: acl.cc,v 1.56 1996/11/02 00:17:40 wessels Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
decode_addr(char *asc, struct in_addr *addr, struct in_addr *mask)
{
u_num32 a = 0;
- int a1=0, a2=0, a3=0, a4=0;
+ int a1 = 0, a2 = 0, a3 = 0, a4 = 0;
struct hostent *hp = NULL;
switch (sscanf(asc, "%d.%d.%d.%d", &a1, &a2, &a3, &a4)) {
/*
- * $Id: cache_cf.cc,v 1.123 1996/11/01 21:31:03 wessels Exp $
+ * $Id: cache_cf.cc,v 1.124 1996/11/02 00:17:43 wessels Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
static void parseMcastGroupLine _PARAMS((void));
static void parseMemLine _PARAMS((void));
static void parseMgrLine _PARAMS((void));
-static void parsePidFilenameLine _PARAMS((void));
static void parseKilobytes _PARAMS((int *));
static void parseSwapLine _PARAMS((void));
static void parseRefreshPattern _PARAMS((int icase));
/*
- * $Id: errorpage.cc,v 1.45 1996/10/15 16:40:05 wessels Exp $
+ * $Id: errorpage.cc,v 1.46 1996/11/02 00:17:45 wessels Exp $
*
* DEBUG: section 4 Error Generation
* AUTHOR: Duane Wessels
{
int error_index;
+ if (entry->store_status != STORE_PENDING) {
+ debug_trap("squid_error_entry() called on STORE_PENDING object");
+ return;
+ }
if (type < ERR_MIN || type > ERR_MAX)
fatal_dump("squid_error_entry: type out of range.");
error_index = (int) (type - ERR_MIN);
/*
- * $Id: gopher.cc,v 1.58 1996/11/01 07:43:44 wessels Exp $
+ * $Id: gopher.cc,v 1.59 1996/11/02 00:17:49 wessels Exp $
*
* DEBUG: section 10 Gopher
* AUTHOR: Harvest Derived
(PF) gopherSendRequest,
(void *) gopherState, 0);
if (Config.vizHackAddr.sin_port)
- vizHackSendPkt(&gopherState->connectState.S, 2);
+ vizHackSendPkt(&gopherState->connectState.S, 2);
}
/*
- * $Id: http.cc,v 1.91 1996/11/01 07:43:45 wessels Exp $
+ * $Id: http.cc,v 1.92 1996/11/02 00:17:51 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
httpLifetimeExpire, (void *) httpState, 0);
commSetSelect(fd, COMM_SELECT_WRITE,
httpSendRequest, (void *) httpState, 0);
- if (Config.vizHackAddr.sin_port)
- vizHackSendPkt(&httpState->connectState.S, 2);
+ if (Config.vizHackAddr.sin_port)
+ vizHackSendPkt(&httpState->connectState.S, 2);
}
}
/*
- * $Id: squid.h,v 1.64 1996/11/01 21:25:05 wessels Exp $
+ * $Id: squid.h,v 1.65 1996/11/02 00:17:53 wessels Exp $
*
* AUTHOR: Duane Wessels
*
#if USE_ASYNC_IO && HAVE_AIO_H
#include <aio.h>
#endif
+#if HAVE_GETOPT_H
+#include <getopt.h>
+#endif
#ifdef __STDC__
#include <stdarg.h>
#include <syslog.h>
#endif
-/* Only enable shadow password suite if both header and library exist */
-#if HAVE_SHADOW_H && HAVE_LIBSHADOW
+#if HAVE_SHADOW_H
#include <shadow.h>
#endif
/*
- * $Id: ssl.cc,v 1.21 1996/11/01 07:43:48 wessels Exp $
+ * $Id: ssl.cc,v 1.22 1996/11/02 00:17:54 wessels Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
else
sslConnected(sslState->server.fd, sslState);
if (Config.vizHackAddr.sin_port)
- vizHackSendPkt(&sslState->connectState.S, 2);
+ vizHackSendPkt(&sslState->connectState.S, 2);
}
int
/*
- * $Id: store.cc,v 1.145 1996/11/01 21:25:09 wessels Exp $
+ * $Id: store.cc,v 1.146 1996/11/02 00:17:58 wessels Exp $
*
* DEBUG: section 20 Storeage Manager
* AUTHOR: Harvest Derived
/* key temp buffer */
static char key_temp_buffer[MAX_URL + 100];
-static char swaplog_file[SQUID_MAXPATHLEN+1];
-static char tmp_filename[SQUID_MAXPATHLEN+1];
+static char swaplog_file[SQUID_MAXPATHLEN + 1];
+static char tmp_filename[SQUID_MAXPATHLEN + 1];
/* patch cache_dir to accomodate multiple disk storage */
static char **CacheDirs = NULL;
{
char **tmp = NULL;
int i;
- if (strlen(path) > (SQUID_MAXPATHLEN-32))
+ if (strlen(path) > (SQUID_MAXPATHLEN - 32))
fatal_dump("cache_dir pathname is too long");
if (CacheDirs == NULL) {
CacheDirsAllocated = 4;
static char *
storeSwapFullPath(int fn, char *fullpath)
{
- LOCAL_ARRAY(char, fullfilename, SQUID_MAXPATHLEN+1);
+ LOCAL_ARRAY(char, fullfilename, SQUID_MAXPATHLEN + 1);
if (!fullpath)
fullpath = fullfilename;
fullpath[0] = '\0';
static void
storeSwapOutHandle(int fd, int flag, StoreEntry * e)
{
- LOCAL_ARRAY(char, filename, SQUID_MAXPATHLEN+1);
+ LOCAL_ARRAY(char, filename, SQUID_MAXPATHLEN + 1);
MemObject *mem = e->mem_obj;
debug(20, 3, "storeSwapOutHandle: '%s'\n", e->key);
{
int fd;
int x;
- LOCAL_ARRAY(char, swapfilename, SQUID_MAXPATHLEN+1);
+ LOCAL_ARRAY(char, swapfilename, SQUID_MAXPATHLEN + 1);
MemObject *mem = e->mem_obj;
/* Suggest a new swap file number */
swapfileno = (swapfileno + 1) % (MAX_SWAP_FILE);
storeSanityCheck();
dir_created = storeVerifySwapDirs(opt_zap_disk_store);
if (Config.Log.swap)
- strncpy(swaplog_file, Config.Log.swap, SQUID_MAXPATHLEN);
+ strncpy(swaplog_file, Config.Log.swap, SQUID_MAXPATHLEN);
else
sprintf(swaplog_file, "%s/log", swappath(0));
swaplog_fd = file_open(swaplog_file, NULL, O_WRONLY | O_CREAT);
/*
- * $Id: tunnel.cc,v 1.21 1996/11/01 07:43:48 wessels Exp $
+ * $Id: tunnel.cc,v 1.22 1996/11/02 00:17:54 wessels Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
else
sslConnected(sslState->server.fd, sslState);
if (Config.vizHackAddr.sin_port)
- vizHackSendPkt(&sslState->connectState.S, 2);
+ vizHackSendPkt(&sslState->connectState.S, 2);
}
int
/*
- * $Id: wais.cc,v 1.48 1996/11/01 07:43:48 wessels Exp $
+ * $Id: wais.cc,v 1.49 1996/11/02 00:18:00 wessels Exp $
*
* DEBUG: section 24 WAIS Relay
* AUTHOR: Harvest Derived
(PF) waisSendRequest,
(void *) waisState, 0);
if (Config.vizHackAddr.sin_port)
- vizHackSendPkt(&waisState->connectState.S, 2);
+ vizHackSendPkt(&waisState->connectState.S, 2);
}