/*
- * $Id: cache_cf.cc,v 1.231 1997/11/12 23:36:22 wessels Exp $
+ * $Id: cache_cf.cc,v 1.232 1997/11/12 23:38:08 wessels Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
parse_cachedir(struct _cacheSwap *swap)
{
char *token;
- char *path;
+ ehar *path;
int i;
int size;
int l1;
SwapDir *tmp = NULL;
if ((path = strtok(NULL, w_space)) == NULL)
self_destruct();
- if (strlen(path) > (SQUID_MAXPATHLEN - 32))
- fatal_dump("cache_dir pathname is too long");
GetInteger(i);
size = i << 10; /* Mbytes to kbytes */
GetInteger(i);
/*
- * $Id: store.cc,v 1.338 1997/11/12 00:09:09 wessels Exp $
+ * $Id: store.cc,v 1.339 1997/11/12 23:41:12 wessels Exp $
*
* DEBUG: section 20 Storeage Manager
* AUTHOR: Harvest Derived
{
if (EBIT_TEST(e->flag, RELEASE_REQUEST))
return;
- if (!storeEntryLocked(e))
- fatal_dump("storeReleaseRequest: unlocked entry");
+ assert(storeEntryLocked(e));
debug(20, 3) ("storeReleaseRequest: '%s'\n", storeKeyText(e->key));
EBIT_SET(e->flag, RELEASE_REQUEST);
storeSetPrivateKey(e);
int diff;
int hdr_sz;
int content_length;
-
- if (e->mem_obj == NULL)
- fatal_dump("storeEntryValidLength: NULL mem_obj");
-
+ assert(e->mem_obj != NULL);
hdr_sz = e->mem_obj->reply->hdr_sz;
content_length = e->mem_obj->reply->content_length;
int
urlcmp(const void *url1, const void *url2)
{
- if (!url1 || !url2)
- fatal_dump("urlcmp: Got a NULL url pointer.");
+ assert(url1 && url2);
return (strcmp(url1, url2));
}