chiark / gitweb /
compiles
authorian <ian>
Sun, 26 Mar 2000 15:09:10 +0000 (15:09 +0000)
committerian <ian>
Sun, 26 Mar 2000 15:09:10 +0000 (15:09 +0000)
src/event.c

index 885ab81032747cb4ba478c84723375fa2791f73c..1b679e60760bff8bdf2c5b5e5b85f8c8a795db09 100644 (file)
@@ -540,7 +540,7 @@ void adns_beforeselect(adns_state ads, int *maxfd_io, fd_set *readfds_io,
   if (tv_mod && (!*tv_mod || (*tv_mod)->tv_sec || (*tv_mod)->tv_usec)) {
     /* The caller is planning to sleep. */
     adns__must_gettimeofday(ads,&now,&tv_nowbuf);
-    if (!now) { inter_immed(tv_mod,tv_iobuf); goto xit; }
+    if (!now) { inter_immed(tv_mod,tv_tobuf); goto xit; }
     adns__timeouts(ads, 1, tv_mod,tv_tobuf, *now);
   }
 
@@ -665,7 +665,7 @@ int adns_wait(adns_state ads,
              void **context_r) {
   int r, maxfd, rsel;
   fd_set readfds, writefds, exceptfds;
-  struct timeval *now, nowbuf, tvbuf, *tvp;
+  struct timeval tvbuf, *tvp;
   
   adns__consistency(ads,*query_io,cc_entex);
   for (;;) {