diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-04 19:51:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-04 19:51:32 +0100 |
commit | b6516075d6881756589a60cccb8769726c1a2a02 (patch) | |
tree | fb59e777b685b370941108ac44d338f135181648 /src/libutil/util.c | |
parent | fb374c971f50f72da9b9c7980493e963099e1d9f (diff) | |
download | rspamd-b6516075d6881756589a60cccb8769726c1a2a02.tar.gz rspamd-b6516075d6881756589a60cccb8769726c1a2a02.zip |
[Minor] Fix unsigned clockid_t case
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r-- | src/libutil/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index 9c943108f..5f279140c 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -1853,8 +1853,8 @@ rspamd_get_virtual_ticks (void) #ifdef HAVE_CLOCK_GETTIME struct timespec ts; - static clockid_t cid = -1; - if (cid == -1) { + static clockid_t cid = (clockid_t)-1; + if (cid == (clockid_t)-1) { # ifdef HAVE_CLOCK_GETCPUCLOCKID if (clock_getcpuclockid (0, &cid) == -1) { # endif |