diff options
author | Bert <ber.t@gmx.com> | 2011-09-02 04:33:44 +0200 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-09-02 04:33:44 +0200 |
commit | 1e84773276ede56309a145dc08a4f3d47ad3a29f (patch) | |
tree | 44dcbcaa8ae2248e089b74abadce86da1a547a6f /util.h | |
parent | 391e6e707968a8ee74e88b5e19ba90e799572c93 (diff) |
Data driven timeout handling
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -33,7 +33,12 @@ #define MSEC_TO_TIMEVAL(t,tv) { \ (tv)->tv_sec = (t) / 1000; \ - (tv)->tv_usec = (t) % 1000 * 1000; \ + (tv)->tv_usec = (t) % 1000 * 1000; \ +} + +#define MSEC_ADD_TO_TIMEVAL(t,tv) { \ + (tv)->tv_sec += (t) / 1000; \ + (tv)->tv_usec += (t) % 1000 * 1000; \ } #ifndef TIMESPEC_TO_TIMEVAL @@ -60,8 +65,6 @@ char* s_strdup(char*); void warn(const char*, ...); void die(const char*, ...); -int min_int_nz(int, ...); - void size_readable(float*, const char**); char* absolute_path(const char*); |