/*
- * $Id: cache_cf.cc,v 1.345 2000/05/16 07:06:03 wessels Exp $
+ * $Id: cache_cf.cc,v 1.346 2000/05/28 22:15:42 wessels Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
update_maxobjsize(void)
{
int i;
- size_t ms = -1;
+ ssize_t ms = -1;
for (i = 0; i < Config.cacheSwap.n_configured; i++) {
if (Config.cacheSwap.swapDirs[i].max_objsize > ms)
SwapDir *sd;
int i;
int fs;
- size_t maxobjsize;
+ ssize_t maxobjsize;
if ((type_str = strtok(NULL, w_space)) == NULL)
self_destruct();
- maxobjsize = (size_t) GetInteger();
+ maxobjsize = (ssize_t) GetInteger();
if ((path_str = strtok(NULL, w_space)) == NULL)
self_destruct();
/*
- * $Id: store_dir.cc,v 1.109 2000/05/16 07:06:07 wessels Exp $
+ * $Id: store_dir.cc,v 1.110 2000/05/28 22:15:42 wessels Exp $
*
* DEBUG: section 47 Store Directory Routines
* AUTHOR: Duane Wessels
#include "squid.h"
-static int storeDirValidSwapDirSize(int, size_t);
+static int storeDirValidSwapDirSize(int, ssize_t);
static void storeDirLRUWalkInitHead(SwapDir * sd);
static void *storeDirLRUWalkNext(SwapDir * sd);
* ie any-sized-object swapdirs. This is a good thing.
*/
static int
-storeDirValidSwapDirSize(int swapdir, size_t objsize)
+storeDirValidSwapDirSize(int swapdir, ssize_t objsize)
{
/*
* If the swapdir's max_obj_size is -1, then it definitely can
int
storeDirSelectSwapDir(const StoreEntry * e)
{
- size_t objsize;
- size_t least_size;
- size_t least_objsize;
+ ssize_t objsize;
+ ssize_t least_size;
+ ssize_t least_objsize;
int least_load = 1000;
int load;
int dirn = -1;
SwapDir *SD;
/* Calculate the object size */
- objsize = objectLen(e);
+ objsize = (ssize_t) objectLen(e);
if (objsize != -1)
objsize += e->mem_obj->swap_hdr_sz;
/* Initial defaults */
/*
- * $Id: structs.h,v 1.334 2000/05/16 07:06:07 wessels Exp $
+ * $Id: structs.h,v 1.335 2000/05/28 22:15:42 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
char *path;
int index; /* This entry's index into the swapDirs array */
int suggest;
- size_t max_objsize;
+ ssize_t max_objsize;
union {
#ifdef HEAP_REPLACEMENT
struct {