Fix warnings

This commit is contained in:
Vadim Vetrov
2025-02-03 15:30:10 +03:00
parent f7d0bed7aa
commit a7b689b320
2 changed files with 1 additions and 3 deletions

View File

@@ -157,7 +157,7 @@ typedef unsigned int uint_t;
#elif defined(__GNUC__) #elif defined(__GNUC__)
int strcasecmp(const char *s1, const char *s2); int strcasecmp(const char *s1, const char *s2);
int strncasecmp(const char *s1, const char *s2, size_t n); int strncasecmp(const char *s1, const char *s2, size_t n);
#if !(_SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE) #if !(defined(_SVID_SOURCE) || defined(_BSD_SOURCE) || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 1) || defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE))
char *strtok_r(char *s, const char *delim, char **last); char *strtok_r(char *s, const char *delim, char **last);
#endif #endif

View File

@@ -75,8 +75,6 @@ static int analyze_sni_str(
goto check_domain; goto check_domain;
} }
lgtrace_addp("abacaba");
// It is safe for multithreading, so dp mutability is ok // It is safe for multithreading, so dp mutability is ok
ret = trie_process_str((struct trie_container *)&section->sni_domains, ret = trie_process_str((struct trie_container *)&section->sni_domains,
(const uint8_t *)sni_name, sni_len, TRIE_OPT_MAP_TO_END, &offset, &offlen); (const uint8_t *)sni_name, sni_len, TRIE_OPT_MAP_TO_END, &offset, &offlen);