#include <set>
#include <algorithm>
-
typedef std::set<ACL*> AclSet;
/// Accumulates all ACLs to facilitate their clean deletion despite reuse.
static AclSet *RegisteredAcls; // TODO: Remove when ACLs are refcounted
ACLMaxUserIP::ACLMaxUserIP (ACLMaxUserIP const & old) : class_ (old.class_), maximum (old.maximum)
{
- flags = old.flags;
+ flags = old.flags;
}
ACLMaxUserIP::~ACLMaxUserIP()
class ClientDbRr: public RegisteredRunner
{
- public:
- virtual void run(const RunnerRegistry &);
+public:
+ virtual void run(const RunnerRegistry &);
};
RunnerRegistrationEntry(rrAfterConfig, ClientDbRr);
Eui::Eui64::decode(const char *asc)
{
if (eui64_aton(asc, (struct eui64 *)eui) != 0) {
- debugs(28, 4, "id=" << (void*)this << " decode fail on " << asc);
- return false;
+ debugs(28, 4, "id=" << (void*)this << " decode fail on " << asc);
+ return false;
}
debugs(28, 4, "id=" << (void*)this << " ATON decoded " << asc);
}
Format::Token::Token() : type(LFT_NONE),
- label(NULL),
- widthMin(-1),
- widthMax(-1),
- quote(LOG_QUOTE_NONE),
- left(false),
- space(false),
- zero(false),
- divisor(1),
- next(NULL)
+ label(NULL),
+ widthMin(-1),
+ widthMax(-1),
+ quote(LOG_QUOTE_NONE),
+ left(false),
+ space(false),
+ zero(false),
+ divisor(1),
+ next(NULL)
{
data.string = NULL;
- data.header.header = NULL;
+ data.header.header = NULL;
data.header.element = NULL;
data.header.separator = ',';
}
-
-
Format::Token::~Token()
{
label = NULL; // drop reference to global static.
{
switch (status) {
- // 000
+ // 000
case Http::scNone:
return "Init"; /* we init .status with code 0 */
break;
- // 100-199
+ // 100-199
case Http::scContinue:
return "Continue";
break;
return "Processing";
break;
- // 200-299
+ // 200-299
case Http::scOkay:
return "OK";
break;
return "IM Used";
break;
- // 300-399
+ // 300-399
case Http::scMultipleChoices:
return "Multiple Choices";
break;
return "Permanent Redirect";
break;
- // 400-499
+ // 400-499
case Http::scBadRequest:
return "Bad Request";
break;
return "Request Header Fields Too Large";
break;
- // 500-599
+ // 500-599
case Http::scInternalServerError:
return "Internal Server Error";
break;
return "Network Authentication Required";
break;
- // 600+
+ // 600+
case Http::scInvalidHeader:
case Http::scHeaderTooLarge:
// fall through to default.
fatal("Need to add -DMALLOC_DBG when compiling to use -mX option");
#endif
- }
+ }
break;
#if USE_WIN32_SERVICE
Ssl::Config::Config():
#if USE_SSL_CRTD
- ssl_crtd(NULL),
+ ssl_crtd(NULL),
#endif
- ssl_crt_validator(NULL)
-{
+ ssl_crt_validator(NULL)
+{
ssl_crt_validator_Children.concurrency = 1;
}
#include "ssl/Config.h"
Ssl::Config::Config():
#if USE_SSL_CRTD
- ssl_crtd(NULL),
+ ssl_crtd(NULL),
#endif
- ssl_crt_validator(NULL)
+ ssl_crt_validator(NULL)
{
ssl_crt_validator_Children.concurrency = 1;
STUB_NOP