projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58026f7
)
Fix infinite loop in timeout handling on Windows.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 7 Dec 2012 14:49:21 +0000
(15:49 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 7 Dec 2012 14:49:21 +0000
(15:49 +0100)
src/dropin.h
patch
|
blob
|
history
diff --git
a/src/dropin.h
b/src/dropin.h
index 61143eb83c89d6ca251fd817da4ebbd9d49eba91..5279de79f4f1477f3933db39d483977cfec5e306 100644
(file)
--- a/
src/dropin.h
+++ b/
src/dropin.h
@@
-58,7
+58,7
@@
extern int usleep(long long usec);
#define timersub(a, b, r) do {\
(r)->tv_sec = (a)->tv_sec - (b)->tv_sec;\
(r)->tv_usec = (a)->tv_usec - (b)->tv_usec;\
- if((r)->tv_usec <
100000
0)\
+ if((r)->tv_usec < 0)\
(r)->tv_sec--, (r)->tv_usec += 1000000;\
} while (0)
#endif