From: Victor Julien Date: Sat, 28 May 2016 07:21:05 +0000 (+0200) Subject: debug: fix compiler warnings X-Git-Tag: suricata-3.1RC1~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48771c1acf2f9c87507fd3ce5559b02b4573c025;p=thirdparty%2Fsuricata.git debug: fix compiler warnings --- diff --git a/src/app-layer-ssh.c b/src/app-layer-ssh.c index b96f6c9cad..98b5c76a54 100644 --- a/src/app-layer-ssh.c +++ b/src/app-layer-ssh.c @@ -85,7 +85,7 @@ static int SSHParseBanner(SshState *state, SshHeader *header, const uint8_t *inp if ((banner_end - line_ptr) > 255) { SCLogDebug("Invalid version string, it should be less than 255 " "characters including , input value is %"PRIuMAX, - (banner_end - line_ptr)); + (uintmax_t)(banner_end - line_ptr)); SCReturnInt(-1); } diff --git a/src/util-decode-mime.c b/src/util-decode-mime.c index 01cb28fb14..54902551fa 100644 --- a/src/util-decode-mime.c +++ b/src/util-decode-mime.c @@ -1150,7 +1150,8 @@ static int ProcessDecodedDataChunk(const uint8_t *chunk, uint32_t len, if (tok + tokLen - (uint8_t *) chunk == (int)len) { PrintChars(SC_LOG_DEBUG, "LAST CHUNK LINE - CUTOFF", tok, tokLen); - SCLogDebug("\nCHUNK CUTOFF CHARS: %d delim %ld\n", tokLen, len - (tok + tokLen - (uint8_t *) chunk)); + SCLogDebug("\nCHUNK CUTOFF CHARS: %u delim %u\n", + tokLen, len - (uint32_t)(tok + tokLen - (uint8_t *) chunk)); } else { /* Search line for URL */ ret = FindUrlStrings(tok, tokLen, state);