]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUILD] code did not build in full debug mode
authorWilly Tarreau <w@1wt.eu>
Fri, 18 Jan 2008 11:18:15 +0000 (12:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Jan 2008 11:18:15 +0000 (12:18 +0100)
src/checks.c
src/proto_http.c

index f0f18d3fdd553a793f3c4b13aac0c0433b0fb1ec..20ff8db03a3ba8097e2d87848c453ec0cd8a7794 100644 (file)
@@ -10,6 +10,7 @@
  *
  */
 
+#include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
index e3723c1b889256e140f339c389d3c7deb0a90163..2ce67869d95b25e17da267a678c00a92c8443be3 100644 (file)
@@ -634,7 +634,7 @@ void process_session(struct task *t, struct timeval *next)
                /* DEBUG code : this should never ever happen, otherwise it indicates
                 * that a task still has something to do and will provoke a quick loop.
                 */
-               if (tv_remain2(&now, &t->expire) <= 0)
+               if (tv_ms_remain2(&now, &t->expire) <= 0)
                        exit(100);
 #endif
                *next = t->expire;