40 static const char* task_str =
"task";
84 if (!ldns_dname_compare((
const void*) zx->
apex,
85 (
const void*) zy->
apex)) {
97 return ldns_dname_compare((
const void*) zx->
apex,
98 (
const void*) zy->
apex);
114 return "[configure]";
143 if (zone && zone->
name) {
157 char* strtime = NULL;
158 char* strtask = NULL;
161 strtime = ctime(&task->
when);
163 strtime[strlen(strtime)-1] =
'\0';
166 (void)snprintf(buftask, ODS_SE_MAXLINE,
"%s %s I will %s zone %s" 167 "\n", task->
flush?
"Flush":
"On", strtime?strtime:
"(null)",
171 strtask = (
char*) calloc(ODS_SE_MAXLINE,
sizeof(
char));
173 snprintf(strtask, ODS_SE_MAXLINE,
"%s %s I will %s zone %s\n",
174 task->
flush?
"Flush":
"On", strtime?strtime:
"(null)",
178 ods_log_error(
"[%s] unable to convert task to string: malloc " 194 char* strtime = NULL;
197 strtime = ctime(&task->
when);
199 strtime[strlen(strtime)-1] =
'\0';
201 ods_log_debug(
"[%s] %s %s I will %s zone %s", task_str,
202 task->
flush?
"Flush":
"On", strtime?strtime:
"(null)",
void task_log(task_type *task)
const char * task_who2str(task_type *task)
enum task_id_enum task_id
void task_cleanup(task_type *task)
int task_compare(const void *a, const void *b)
char * task2str(task_type *task, char *buftask)
const char * task_what2str(task_id what)
task_type * task_create(task_id what, time_t when, void *zone)