diff options
author | Simon Rettberg | 2017-10-20 12:11:35 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-10-20 12:11:35 +0200 |
commit | 49871497459cc75ce503692e44203e9d5c76f179 (patch) | |
tree | 15958bec61c56293968a26b942a0cee87bd069ea /src | |
parent | [SERVER] Mute signedness warning on 32bit (diff) | |
download | dnbd3-49871497459cc75ce503692e44203e9d5c76f179.tar.gz dnbd3-49871497459cc75ce503692e44203e9d5c76f179.tar.xz dnbd3-49871497459cc75ce503692e44203e9d5c76f179.zip |
[SERVER] Properly support passing negative values to timing_gets()
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/timing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/timing.h b/src/shared/timing.h index a8a51a4..dfff5f8 100644 --- a/src/shared/timing.h +++ b/src/shared/timing.h @@ -60,7 +60,7 @@ static inline void timing_get(ticks* retval) * Get a ticks instance somewhere in the future. * Useful for timeouts. */ -static inline void timing_gets(ticks* retval, uint32_t addSeconds) +static inline void timing_gets(ticks* retval, int32_t addSeconds) { timing_get( retval ); retval->tv_sec += addSeconds; |