From 19e94e93fab84c009c0aefd49809c91665a8fa33 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 16 Sep 2022 11:10:08 +0200 Subject: [PATCH] common: move u8_tolower to common header --- src/suricata-common.h | 4 ++++ src/suricata.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) 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); -- 2.47.2