From: Victor Julien Date: Fri, 20 Sep 2013 13:59:43 +0000 (+0200) Subject: Suppress compiler warning about comparing signed and unsigned vars X-Git-Tag: suricata-2.0beta2~348 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e77b21a7f789e57949c14f64bcecb8d1232aa547;p=thirdparty%2Fsuricata.git Suppress compiler warning about comparing signed and unsigned vars --- diff --git a/src/util-time.c b/src/util-time.c index b0d6cc9245..614afd916d 100644 --- a/src/util-time.c +++ b/src/util-time.c @@ -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,