chiark
/
gitweb
/
~mdw
/
adns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8744cce
)
compiles
author
ian
<ian>
Sun, 26 Mar 2000 15:09:10 +0000
(15:09 +0000)
committer
ian
<ian>
Sun, 26 Mar 2000 15:09:10 +0000
(15:09 +0000)
src/event.c
patch
|
blob
|
blame
|
history
diff --git
a/src/event.c
b/src/event.c
index 885ab81032747cb4ba478c84723375fa2791f73c..1b679e60760bff8bdf2c5b5e5b85f8c8a795db09 100644
(file)
--- a/
src/event.c
+++ b/
src/event.c
@@
-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 (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_
i
obuf); goto xit; }
+ if (!now) { inter_immed(tv_mod,tv_
t
obuf); goto xit; }
adns__timeouts(ads, 1, tv_mod,tv_tobuf, *now);
}
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;
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 (;;) {
adns__consistency(ads,*query_io,cc_entex);
for (;;) {