]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Suppress compiler warning about comparing signed and unsigned vars
authorVictor Julien <victor@inliniac.net>
Fri, 20 Sep 2013 13:59:43 +0000 (15:59 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 20 Sep 2013 13:59:43 +0000 (15:59 +0200)
src/util-time.c

index b0d6cc92458e6d198c8249597d6c031ebe708bc2..614afd916d9b99bf258a871058c0882e1d332a3c 100644 (file)
@@ -271,7 +271,7 @@ void CreateTimeString (const struct timeval *ts, char *str, size_t size)
        into the return string buffer. */
     char *cached_str = cached_local_time[mru_time_slot];
     int cached_len = cached_local_time_len[mru_time_slot];
-    if (cached_len >= size)
+    if (cached_len >= (int)size)
       cached_len = size;
     memcpy(str, cached_str, cached_len);
     snprintf(str + cached_len, size - cached_len,