From: Vsevolod Stakhov Date: Tue, 4 Sep 2018 18:51:32 +0000 (+0100) Subject: [Minor] Fix unsigned clockid_t case X-Git-Tag: 1.8.0~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6516075d6881756589a60cccb8769726c1a2a02;p=thirdparty%2Frspamd.git [Minor] Fix unsigned clockid_t case --- 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