From b6516075d6881756589a60cccb8769726c1a2a02 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 4 Sep 2018 19:51:32 +0100 Subject: [PATCH] [Minor] Fix unsigned clockid_t case --- src/libutil/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libutil/util.c b/src/libutil/util.c index 9c943108f5..5f279140c9 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 -- 2.47.3