diff --git a/deps/cyclone/include/compiler_port.h b/deps/cyclone/include/compiler_port.h index 0c9f072..c63dc9d 100644 --- a/deps/cyclone/include/compiler_port.h +++ b/deps/cyclone/include/compiler_port.h @@ -157,7 +157,7 @@ typedef unsigned int uint_t; #elif defined(__GNUC__) int strcasecmp(const char *s1, const char *s2); 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); #endif diff --git a/src/tls.c b/src/tls.c index 73eb118..9cd79f9 100644 --- a/src/tls.c +++ b/src/tls.c @@ -75,8 +75,6 @@ static int analyze_sni_str( goto check_domain; } - lgtrace_addp("abacaba"); - // It is safe for multithreading, so dp mutability is ok ret = trie_process_str((struct trie_container *)§ion->sni_domains, (const uint8_t *)sni_name, sni_len, TRIE_OPT_MAP_TO_END, &offset, &offlen);