]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix unsigned clockid_t case
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 Sep 2018 18:51:32 +0000 (19:51 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 Sep 2018 18:51:32 +0000 (19:51 +0100)
src/libutil/util.c

index 9c943108f5400e55c7fc02c9f15d7058cc604e49..5f279140c98c415e4323cf4cca712da32c888190 100644 (file)
@@ -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