From 2f68afaa50abf604c101b7c9c0b4ebfeb2b5d57a Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 28 Jan 2006 21:52:02 +0000 Subject: Fix resends. --- common/server-mainloop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/server-mainloop.c b/common/server-mainloop.c index 6ea8985..9eefb6f 100644 --- a/common/server-mainloop.c +++ b/common/server-mainloop.c @@ -98,7 +98,7 @@ timeval_compare(struct timeval* t1, struct timeval* t2) ((((uint64_t)(tv).tv_sec) * 1000L) + (((uint64_t)(tv).tv_usec) / 1000L)) #define timeval_dump(tv) \ - (fprintf(stderr, "{ %d:%d }", (uint)((tv)->tv_sec), (uint)((tv)->tv_usec / 1000)) + (fprintf(stderr, "{ %d:%d }", (uint)((tv).tv_sec), (uint)((tv).tv_usec / 1000))) static int add_timer(int ms, int oneshot, server_timer_callback callback, void* arg) @@ -278,7 +278,7 @@ server_run() } /* Get soonest timer */ - if (!timeout || timeval_compare(timeout, &timcb->at) < 0) + if (!timeout || timeval_compare(&timcb->at, timeout) < 0) timeout = &timcb->at; timcb = timcb->next; -- cgit v1.2.3