From: Victor Julien Date: Fri, 16 Sep 2022 09:10:08 +0000 (+0200) Subject: common: move u8_tolower to common header X-Git-Tag: suricata-7.0.0-beta1~229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19e94e93fab84c009c0aefd49809c91665a8fa33;p=thirdparty%2Fsuricata.git common: move u8_tolower to common header --- diff --git a/src/suricata-common.h b/src/suricata-common.h index 7e425ee921..6ed46a9196 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -413,6 +413,10 @@ typedef unsigned char u_char; (b) = t; \ } while (0) +#include +#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, diff --git a/src/suricata.h b/src/suricata.h index 321f21a786..d559cd854c 100644 --- a/src/suricata.h +++ b/src/suricata.h @@ -173,10 +173,6 @@ extern uint16_t g_vlan_mask; /* Flag to disable hashing (almost) globally. */ extern bool g_disable_hashing; -#include -#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);