struct DNSRecord
{
- DNSRecord() {
- d_type = 0;
- d_class = QClass::IN;
- d_ttl = 0;
- d_clen = 0;
- d_place = DNSResourceRecord::ANSWER;
- }
+ DNSRecord() : d_type(0), d_class(QClass::IN), d_ttl(0), d_clen(0), d_place(DNSResourceRecord::ANSWER)
+ {}
explicit DNSRecord(const DNSResourceRecord& rr);
DNSName d_name;
std::shared_ptr<DNSRecordContent> d_content;
)
SOARecordContent::SOARecordContent(const DNSName& mname, const DNSName& rname, const struct soatimes& st)
-: d_mname(mname), d_rname(rname)
+: d_mname(mname), d_rname(rname), d_st(st)
{
- d_st=st;
}
boilerplate_conv(SOA, QType::SOA,
#ifndef ENABLE_GSS_TSIG
bool GssContext::supported() { return false; }
-GssContext::GssContext() { d_error = GSS_CONTEXT_UNSUPPORTED; d_type = GSS_CONTEXT_NONE; }
-GssContext::GssContext(const DNSName& label) { d_error = GSS_CONTEXT_UNSUPPORTED; d_type = GSS_CONTEXT_NONE; }
+GssContext::GssContext() : d_error(GSS_CONTEXT_UNSUPPORTED), d_type(GSS_CONTEXT_NONE) {}
+GssContext::GssContext(const DNSName& label) : d_error(GSS_CONTEXT_UNSUPPORTED), d_type(GSS_CONTEXT_NONE) {}
void GssContext::setLocalPrincipal(const std::string& name) {}
bool GssContext::getLocalPrincipal(std::string& name) { return false; }
void GssContext::setPeerPrincipal(const std::string& name) {}
class GssCredential : boost::noncopyable {
public:
- GssCredential(const std::string& name, const gss_cred_usage_t usage) {
+ GssCredential(const std::string& name, const gss_cred_usage_t usage) :
+ d_valid(false), d_nameS(name), d_name(GSS_C_NO_NAME), d_cred(GSS_C_NO_CREDENTIAL), d_usage(usage) {
gss_buffer_desc buffer;
- d_name = GSS_C_NO_NAME;
- d_nameS = name;
- d_cred = GSS_C_NO_CREDENTIAL;
-
- d_usage = usage;
- d_valid = false;
if (name.empty() == false) {
buffer.length = name.size();
unixDie("Creating thread key for logger");
}
-Logger::Logger(const string &n, int facility)
+Logger::Logger(const string &n, int facility) :
+ name(n), flags(LOG_PID|LOG_NDELAY), d_facility(facility), d_loglevel(Logger::None),
+ consoleUrgency(Error), opened(false), d_disableSyslog(false)
{
- opened=false;
- flags=LOG_PID|LOG_NDELAY;
- d_facility=facility;
- d_loglevel=Logger::None;
- d_disableSyslog=false;
- consoleUrgency=Error;
- name=n;
-
if(pthread_once(&s_once, initKey))
unixDie("Creating thread key for logger");
private:
struct PerThread
{
- PerThread()
- {
- d_urgency=Info;
- }
+ PerThread() : d_urgency(Info)
+ {}
string d_output;
Urgency d_urgency;
};