[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r3821 - trunk/OpenDNSSEC/signer/src/scheduler

Matthijs Mekking matthijs at nlnetlabs.nl
Fri Aug 27 11:59:13 CEST 2010


Author: matthijs
Date: 2010-08-27 11:59:13 +0200 (Fri, 27 Aug 2010)
New Revision: 3821

Modified:
   trunk/OpenDNSSEC/signer/src/scheduler/task.c
Log:
and then pop task data instead of key

Modified: trunk/OpenDNSSEC/signer/src/scheduler/task.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/scheduler/task.c	2010-08-27 09:55:50 UTC (rev 3820)
+++ trunk/OpenDNSSEC/signer/src/scheduler/task.c	2010-08-27 09:59:13 UTC (rev 3821)
@@ -418,7 +418,7 @@
 
     node = ldns_rbtree_first(list->tasks);
     while (node && node != LDNS_RBTREE_NULL) {
-        task = (task_type*) node->key;
+        task = (task_type*) node->data;
         task->flush = 1;
         node = ldns_rbtree_next(node);
     }
@@ -470,7 +470,7 @@
     }
 
     now = time_now();
-    pop = (task_type*) first_node->key;
+    pop = (task_type*) first_node->data;
     if (pop && (pop->flush || pop->when <= now)) {
         if (pop->flush) {
             se_log_debug("flush task for zone %s", pop->who?pop->who:"(null)");
@@ -504,7 +504,7 @@
         return NULL;
     }
 
-    pop = (task_type*) first_node->key;
+    pop = (task_type*) first_node->data;
     return pop;
 }
 
@@ -524,7 +524,7 @@
 
     node = ldns_rbtree_first(list->tasks);
     while (node && node != LDNS_RBTREE_NULL) {
-        task = (task_type*) node->key;
+        task = (task_type*) node->data;
         task_print(out, task);
         node = ldns_rbtree_next(node);
     }




More information about the Opendnssec-commits mailing list