MemImplementingAllocator * create(const char *label, size_t obj_size);
MemImplementingAllocator * create(const char *label, size_t obj_size, bool const chunked);
void setIdleLimit(size_t new_idle_limit);
- size_t const idleLimit() const;
+ size_t idleLimit() const;
void clean(time_t maxage);
void setDefaultPoolChunking(bool const &);
MemImplementingAllocator *pools;
/*
- * $Id: MemPool.cc,v 1.9 2007/09/20 11:26:22 amosjeffries Exp $
+ * $Id: MemPool.cc,v 1.10 2007/11/13 23:25:33 rousskov Exp $
*
* DEBUG: section 63 Low Level Memory Pool Management
* AUTHOR: Alex Rousskov, Andres Kroonmaa, Robert Collins
mem_idle_limit = new_idle_limit;
}
-size_t const
+size_t
MemPools::idleLimit() const
{
return mem_idle_limit;
public:
virtual ~TrieCharTransform() {}
- virtual char const operator () (char const) = 0;
+ virtual char operator () (char const) const = 0;
};
class TrieCaseless : public TrieCharTransform
{
- virtual char const operator () (char const aChar) {return tolower(aChar);}
+ virtual char operator () (char const aChar) const {return tolower(aChar);}
};
#endif /* __cplusplus */
/*
- * $Id: client_side.cc,v 1.768 2007/10/30 21:52:30 rousskov Exp $
+ * $Id: client_side.cc,v 1.769 2007/11/13 23:25:34 rousskov Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
/*
* paranoid check
*/
- assert(available.size() >= 0 && i->debt() >= 0 || i->debt() == -1);
+ assert((available.size() >= 0 && i->debt() >= 0) || i->debt() == -1);
if (!canPackMoreRanges()) {
debugs(33, 3, "clientPackRange: Returning because !canPackMoreRanges.");
/*
- * $Id: delay_pools.cc,v 1.48 2007/04/28 22:26:37 hno Exp $
+ * $Id: delay_pools.cc,v 1.49 2007/11/13 23:25:34 rousskov Exp $
*
* DEBUG: section 77 Delay Pools
* AUTHOR: Robert Collins <robertc@squid-cache.org>
virtual char const *label() const = 0;
- virtual unsigned int const makeKey (struct IN_ADDR &src_addr) const = 0;
+ virtual unsigned int makeKey (struct IN_ADDR &src_addr) const = 0;
DelaySpec spec;
protected:
virtual char const *label() const {return "Individual";}
- virtual unsigned int const makeKey (struct IN_ADDR &src_addr) const;
+ virtual unsigned int makeKey (struct IN_ADDR &src_addr) const;
};
protected:
virtual char const *label() const {return "Network";}
- virtual unsigned int const makeKey (struct IN_ADDR &src_addr) const;
+ virtual unsigned int makeKey (struct IN_ADDR &src_addr) const;
};
/* don't use remote storage for these */
virtual char const *label() const {return "Individual";}
- virtual unsigned int const makeKey (struct IN_ADDR &src_addr) const;
+ virtual unsigned int makeKey (struct IN_ADDR &src_addr) const;
- unsigned char const makeHostKey (struct IN_ADDR &src_addr) const;
+ unsigned char makeHostKey (struct IN_ADDR &src_addr) const;
DelaySpec spec;
VectorMap<unsigned char, ClassCBucket> buckets;
}
-unsigned int const
-
+unsigned int
IndividualPool::makeKey (struct IN_ADDR &src_addr) const
{
unsigned int host;
::operator delete (address);
}
-unsigned int const
-
+unsigned int
ClassCNetPool::makeKey (struct IN_ADDR &src_addr) const
{
unsigned int net;
return buckets.indexUsed(buckets.findKeyIndex (key));
}
-unsigned char const
-
+unsigned char
ClassCHostPool::makeHostKey (struct IN_ADDR &src_addr) const
{
unsigned int host;
return host;
}
-unsigned int const
-
+unsigned int
ClassCHostPool::makeKey (struct IN_ADDR &src_addr) const
{
unsigned int net;
/*
- * $Id: icp_v2.cc,v 1.99 2007/04/30 16:56:09 wessels Exp $
+ * $Id: icp_v2.cc,v 1.100 2007/11/13 23:25:34 rousskov Exp $
*
* DEBUG: section 12 Internet Cache Protocol
* AUTHOR: Duane Wessels
{
/* if store is rebuilding, return a UDP_MISS_NOFETCH */
- if (StoreController::store_dirs_rebuilding && opt_reload_hit_only ||
+ if ((StoreController::store_dirs_rebuilding && opt_reload_hit_only) ||
hit_only_mode_until > squid_curtime) {
return ICP_MISS_NOFETCH;
}
/*
- * $Id: logfile.cc,v 1.24 2007/08/21 23:50:12 hno Exp $
+ * $Id: logfile.cc,v 1.25 2007/11/13 23:25:34 rousskov Exp $
*
* DEBUG: section 50 Log file handling
* AUTHOR: Duane Wessels
if (delim != NULL)
lf->syslog_priority |= syslog_ntoa(delim+1);
- if (0 == lf->syslog_priority & PRIORITY_MASK)
+ if (0 == (lf->syslog_priority & PRIORITY_MASK))
lf->syslog_priority |= LOG_INFO;
}
} else
/*
- * $Id: neighbors.cc,v 1.349 2007/04/30 16:56:09 wessels Exp $
+ * $Id: neighbors.cc,v 1.350 2007/11/13 23:25:34 rousskov Exp $
*
* DEBUG: section 15 Neighbor Routines
* AUTHOR: Harvest Derived
if (p->weight == 1) {
if (q && q->rr_count < p->rr_count)
continue;
- } else if (p->weight == 0 || q && q->rr_count < (p->rr_count / p->weight)) {
+ } else if (p->weight == 0 || (q && q->rr_count < (p->rr_count / p->weight))) {
continue;
}