ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/EV-ADNS/ADNS.xs
(Generate patch)

Comparing cvsroot/EV-ADNS/ADNS.xs (file contents):
Revision 1.9 by root, Sat Dec 1 22:36:10 2007 UTC vs.
Revision 1.10 by root, Mon Dec 3 19:04:54 2007 UTC

225update_now (EV_P) 225update_now (EV_P)
226{ 226{
227 ev_tstamp t = ev_now (); 227 ev_tstamp t = ev_now ();
228 228
229 tv_now.tv_sec = (long)t; 229 tv_now.tv_sec = (long)t;
230 tv_now.tv_usec = (long)((t - (ev_tstamp)tv_now.tv_sec) * 1e-6); 230 tv_now.tv_usec = (long)((t - (ev_tstamp)tv_now.tv_sec) * 1e6);
231} 231}
232 232
233static void 233static void
234idle_cb (EV_P_ ev_idle *w, int revents) 234idle_cb (EV_P_ ev_idle *w, int revents)
235{ 235{
237} 237}
238 238
239static void 239static void
240timer_cb (EV_P_ ev_timer *w, int revents) 240timer_cb (EV_P_ ev_timer *w, int revents)
241{ 241{
242 update_now ();
243
244 adns_processtimeouts (ads, &tv_now);
242} 245}
243 246
244static void 247static void
245io_cb (EV_P_ ev_io *w, int revents) 248io_cb (EV_P_ ev_io *w, int revents)
246{ 249{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines