rapidjson::GenericReader<rapidjson::UTF8<> , rapidjson::MemoryPoolAllocator<> > r;
std::string tmp;
std::string s_output;
- int nread=0;
launch();
try {
BUILT_SOURCES=bind-dnssec.schema.sqlite3.sql.h
bind-dnssec.schema.sqlite3.sql.h: ../../bind-dnssec.schema.sqlite3.sql
- ( echo 'static char sqlCreate[]=' ; sed 's/$$/"/g' ../../bind-dnssec.schema.sqlite3.sql | sed 's/^/"/g' ; echo ';' ) > $@
+ ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' ../../bind-dnssec.schema.sqlite3.sql | sed 's/^/"/g' ; echo ';' ) > $@
libbind2backend_la_SOURCES=bindbackend2.cc bindbackend2.hh bindparser.yy \
#include <string.h>
#include <errno.h>
+#define YY_NO_INPUT 1
#define YYSTYPE char *
#ifdef WIN32
%x incl
%x quoted
%option stack
+%option nounput
+%option noyy_top_state
+%option noinput
+
%%
StatBag S;
-static bool g_intransaction;
static int g_numRecords;
static void quoteValue(string &value)
trim_left(content);
}
- bool auth = true;
- if(qtype == "NS" && !pdns_iequals(stripDot(qname), zoneName)) {
- auth=false;
- }
-
quoteValue(content);
retval = "{";
if(doCache) {
WriteLock l(&g_signatures_lock);
/* we add some jitter here so not all your slaves start pruning their caches at the very same millisecond */
- unsigned int weekno = (time(0) - dns_random(3600)) / (86400*7); // we just spent milliseconds doing a signature, microsecond more won't kill us
+ int weekno = (time(0) - dns_random(3600)) / (86400*7); // we just spent milliseconds doing a signature, microsecond more won't kill us
if(g_cacheweekno < weekno) { // blunt but effective (C) Habbie
g_signatures.clear();
if(room<1)
L<<Logger::Warning<<Logger::NTLog<<"Limit of simultaneous TCP connections reached - raise max-tcp-connections"<<endl;
- if(pthread_create(&tid, 0, &doConnection, (void *)fd)) {
+ if(pthread_create(&tid, 0, &doConnection, reinterpret_cast<void*>(fd))) {
L<<Logger::Error<<"Error creating thread: "<<stringerror()<<endl;
d_connectionroom_sem->post();
}