Also, fixes logformat dumper to output 'logformat' instead of 'format'.
'format' directive is the planned future name but is not yet parsed.
Detected by GCC 4.7 with -Wshadow
typedef Params_ Params;
typedef void (C::*Method)(const Params &io);
- CommCbMemFunT(const CbcPointer<C> &job, Method meth): JobDialer<C>(job),
- CommDialerParamsT<Params_>(job.get()),
- method(meth) {}
+ CommCbMemFunT(const CbcPointer<C> &aJob, Method aMeth): JobDialer<C>(aJob),
+ CommDialerParamsT<Params_>(aJob.get()),
+ method(aMeth) {}
virtual bool canDial(AsyncCall &c) {
return JobDialer<C>::canDial(c) &&
* NP: on errors the earlyAbort call should be cancelled first with a reason.
*/
void
-Comm::ConnOpener::doneConnecting(comm_err_t status, int xerrno)
+Comm::ConnOpener::doneConnecting(comm_err_t errFlag, int xerrno)
{
// only mark the address good/bad AFTER connect is finished.
if (host_ != NULL) {
typedef CommConnectCbParams Params;
Params ¶ms = GetCommParams<Params>(callback_);
params.conn = conn_;
- params.flag = status;
+ params.flag = errFlag;
params.xerrno = xerrno;
ScheduleCallHere(callback_);
callback_ = NULL;
void earlyAbort(const CommCloseCbParams &);
void timeout(const CommTimeoutCbParams &);
- void doneConnecting(comm_err_t status, int xerrno);
+ void doneConnecting(comm_err_t errFlag, int xerrno);
static void InProgressConnectRetry(int fd, void *data);
static void DelayedConnectRetry(void *data);
void connect();
}
void
-Format::Format::dump(StoreEntry * entry, const char *name)
+Format::Format::dump(StoreEntry * entry, const char *directiveName)
{
debugs(46, 4, HERE);
// loop rather than recursing to conserve stack space.
- for (Format *format = this; format; format = format->next) {
- debugs(46, 3, HERE << "Dumping format definition for " << format->name);
- storeAppendPrintf(entry, "format %s ", format->name);
+ for (Format *fmt = this; fmt; fmt = fmt->next) {
+ debugs(46, 3, HERE << "Dumping format definition for " << fmt->name);
+ storeAppendPrintf(entry, "%s %s ", directiveName, fmt->name);
- for (Token *t = format->format; t; t = t->next) {
+ for (Token *t = fmt->format; t; t = t->next) {
if (t->type == LFT_STRING)
storeAppendPrintf(entry, "%s", t->data.string);
else {
void assemble(MemBuf &mb, const AccessLogEntryPointer &al, int logSequenceNumber) const;
/// dump this whole list of formats into the provided StoreEntry
- void dump(StoreEntry * entry, const char *name);
+ void dump(StoreEntry * entry, const char *directiveName);
char *name;
Token *format;
}
template <class ExtrasT>
-StoreMapWithExtras<ExtrasT>::StoreMapWithExtras(const char *const path):
- StoreMap(path)
+StoreMapWithExtras<ExtrasT>::StoreMapWithExtras(const char *const aPath):
+ StoreMap(aPath)
{
const size_t sharedSizeWithoutExtras =
Shared::SharedMemorySize(entryLimit(), 0);