]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
cleanup: eliminate warnings/errors with debug build on macos
authorJeff Lucovsky <jeff@lucovsky.org>
Fri, 26 Jul 2019 22:44:27 +0000 (15:44 -0700)
committerVictor Julien <victor@inliniac.net>
Tue, 20 Aug 2019 12:10:01 +0000 (14:10 +0200)
src/detect-engine-iponly.c
src/detect-flowint.c
src/detect-tcpmss.c

index 33c715b70cbe40aa465a2418e466709e202878d7..48800bf32443808f38ddd7027a4a9d9c9bf4774f 100644 (file)
@@ -459,8 +459,8 @@ static void IPOnlyCIDRListPrint(IPOnlyCIDRItem *tmphead)
 
     while (tmphead != NULL) {
         i++;
-        SCLogDebug("Item %"PRIu32" has netmask %"PRIu16" negated:"
-                   " %s; IP: %s; signum: %"PRIu16, i, tmphead->netmask,
+        SCLogDebug("Item %"PRIu32" has netmask %"PRIu8" negated:"
+                   " %s; IP: %s; signum: %"PRIu32, i, tmphead->netmask,
                    (tmphead->negated) ? "yes":"no",
                    inet_ntoa(*(struct in_addr*)&tmphead->ip[0]),
                    tmphead->signum);
index 42d5a3b7a3077d16328272ca0eee2ed92ca08e57..e2cf15731b84fa237322901b4e0bc9e8156070fa 100644 (file)
@@ -436,7 +436,7 @@ static void DetectFlowintPrintData(DetectFlowintData *sfd)
         return;
     }
 
-    SCLogDebug("Varname: %s, modifier: %"PRIu8", idx: %"PRIu16" Target: ",
+    SCLogDebug("Varname: %s, modifier: %"PRIu8", idx: %"PRIu32" Target: ",
                 sfd->name, sfd->modifier, sfd->idx);
     switch(sfd->targettype) {
         case FLOWINT_TARGET_VAR:
index 4aa0c58a063f2a433d2b28fab9e9e96a5d99adf5..71337d9e20c62ae991dbbec6704088c862c2aad4 100644 (file)
@@ -183,7 +183,7 @@ static DetectTcpmssData *DetectTcpmssParse (const char *tcpmssstr)
                 tcpmssd->mode = DETECT_TCPMSS_LT;
                 tcpmssd->arg1 = (uint16_t) atoi(arg3);
 
-                SCLogDebug("tcpmss is %"PRIu8"",tcpmssd->arg1);
+                SCLogDebug("tcpmss is %"PRIu16"",tcpmssd->arg1);
                 if (strlen(arg1) > 0)
                     goto error;
 
@@ -195,7 +195,7 @@ static DetectTcpmssData *DetectTcpmssParse (const char *tcpmssstr)
                 tcpmssd->mode = DETECT_TCPMSS_GT;
                 tcpmssd->arg1 = (uint16_t) atoi(arg3);
 
-                SCLogDebug("tcpmss is %"PRIu8"",tcpmssd->arg1);
+                SCLogDebug("tcpmss is %"PRIu16"",tcpmssd->arg1);
                 if (strlen(arg1) > 0)
                     goto error;