From 48771c1acf2f9c87507fd3ce5559b02b4573c025 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 28 May 2016 09:21:05 +0200 Subject: [PATCH] debug: fix compiler warnings --- src/app-layer-ssh.c | 2 +- src/util-decode-mime.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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); -- 2.47.2