]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
debug: fix compiler warnings 2115/head
authorVictor Julien <victor@inliniac.net>
Sat, 28 May 2016 07:21:05 +0000 (09:21 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 28 May 2016 07:21:05 +0000 (09:21 +0200)
src/app-layer-ssh.c
src/util-decode-mime.c

index b96f6c9cad9a5c6e46abc83e2807002c27d2ab1f..98b5c76a54b350aca5d96d4292918b29e1a57dec 100644 (file)
@@ -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 <CR><NL>, input value is %"PRIuMAX,
-                (banner_end - line_ptr));
+                (uintmax_t)(banner_end - line_ptr));
         SCReturnInt(-1);
     }
 
index 01cb28fb145eb11d08cf85a40268eea92ec69723..54902551fae183954bba01e7714cff51f02c7bc8 100644 (file)
@@ -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);