chiark / gitweb /
ads->configerrno now initialised (in setup.c). timercmp(,,<=) doesn't
authorian <ian>
Wed, 28 Jul 1999 22:55:40 +0000 (22:55 +0000)
committerian <ian>
Wed, 28 Jul 1999 22:55:40 +0000 (22:55 +0000)
work - use !timercmp(,,>).  Improvements to install instructions,
TODO, etc.

TODO
changelog
src/event.c
src/setup.c

diff --git a/TODO b/TODO
index 95ad0e3..f9d7c29 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,6 +1,7 @@
 BUGS:
 * config.cache shipped !
 
+Easy way to make a reverse query.
 
 DNSSEC compatibility
  - be able to retreive KEY and SIG RRs
index ec11357..59c1e87 100644 (file)
--- a/changelog
+++ b/changelog
@@ -2,7 +2,9 @@ adns (0.4) unstable; urgency=low
 
   Bugfixes:
   * adns_s_systemfail is in table of errors (for eg adns_strerror).
-  * Improvements to install instructions.
+  * timercmp(,,<=) doesn't work - use !timercmp(,,>).
+  * ads->configerrno now initialised (in setup.c).
+  * Improvements to install instructions, TODO, etc.
 
  --
 
index 4d43a8b..adb808b 100644 (file)
@@ -173,7 +173,7 @@ void adns__timeouts(adns_state ads, int act,
 
   for (qu= ads->timew.head; qu; qu= nqu) {
     nqu= qu->next;
-    if (timercmp(&now,&qu->timeout,<=)) {
+    if (!timercmp(&now,&qu->timeout,>)) {
       if (!tv_io) continue;
       inter_maxtoabs(tv_io,tvbuf,now,qu->timeout);
     } else {
index 99cf02a..99d1f08 100644 (file)
@@ -441,6 +441,7 @@ static int init_begin(adns_state *ads_r, adns_initflags flags, FILE *diagfile) {
 
   ads->iflags= flags;
   ads->diagfile= diagfile;
+  ads->configerrno= 0;
   LIST_INIT(ads->timew);
   LIST_INIT(ads->childw);
   LIST_INIT(ads->output);
@@ -450,10 +451,10 @@ static int init_begin(adns_state *ads_r, adns_initflags flags, FILE *diagfile) {
   adns__vbuf_init(&ads->tcpsend);
   adns__vbuf_init(&ads->tcprecv);
   ads->nservers= ads->nsortlist= ads->nsearchlist= ads->tcpserver= 0;
-  ads->tcpstate= server_disconnected;
-  ads->searchlist= 0;
   ads->searchndots= 1;
+  ads->tcpstate= server_disconnected;
   timerclear(&ads->tcptimeout);
+  ads->searchlist= 0;
 
   *ads_r= ads;
   return 0;