]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
common: move u8_tolower to common header
authorVictor Julien <vjulien@oisf.net>
Fri, 16 Sep 2022 09:10:08 +0000 (11:10 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 20 Sep 2022 09:24:10 +0000 (11:24 +0200)
src/suricata-common.h
src/suricata.h

index 7e425ee9213f8bdd357180aebb144569adab2b9c..6ed46a9196d41ad4fdd10a2a06bc87a4879a87bd 100644 (file)
@@ -413,6 +413,10 @@ typedef unsigned char u_char;
         (b) = t;                        \
     } while (0)
 
+#include <ctype.h>
+#define u8_tolower(c) ((uint8_t)tolower((uint8_t)(c)))
+#define u8_toupper(c) ((uint8_t)toupper((uint8_t)(c)))
+
 typedef enum PacketProfileDetectId_ {
     PROF_DETECT_SETUP,
     PROF_DETECT_GETSGH,
index 321f21a786b726f92e8587fe53ed96d45086582f..d559cd854cd6e9ef2759f50e4ab7140d7280fb42 100644 (file)
@@ -173,10 +173,6 @@ extern uint16_t g_vlan_mask;
 /* Flag to disable hashing (almost) globally. */
 extern bool g_disable_hashing;
 
-#include <ctype.h>
-#define u8_tolower(c) ((uint8_t)tolower((uint8_t)(c)))
-#define u8_toupper(c) ((uint8_t)toupper((uint8_t)(c)))
-
 void EngineStop(void);
 void EngineDone(void);