Removed redundant macro

This commit is contained in:
Evgeny Grin (Karlson2k)
2021-10-29 10:12:08 +03:00
parent 8b0b7ea28a
commit 2e39c6b9de
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -158,7 +158,6 @@
/* Manual ASAN poisoning could be used */
#warning User memory poisoning is not active
#endif /* ! MHD_ASAN_POISON_ACTIVE */
#define _MHD_USE_ASAN_POISON 1
#else /* ! (MHD_ASAN_ACTIVE && HAVE_SANITIZER_ASAN_INTERFACE_H &&
(FUNC_ATTR_PTRCOMPARE_WOKRS || FUNC_ATTR_NOSANITIZE_WORKS)) */
#ifdef MHD_ASAN_POISON_ACTIVE
+2 -2
View File
@@ -72,7 +72,7 @@
#ifdef MHD_ASAN_POISON_ACTIVE
#include <sanitizer/asan_interface.h>
#endif /* _MHD_USE_ASAN_POISON */
#endif /* MHD_ASAN_POISON_ACTIVE */
/* define MAP_ANONYMOUS for Mac OS X */
#if defined(MAP_ANON) && ! defined(MAP_ANONYMOUS)
@@ -304,7 +304,7 @@ MHD_pool_get_free (struct MemoryPool *pool)
#ifdef MHD_ASAN_POISON_ACTIVE
if ((pool->end - pool->pos) <= _MHD_RED_ZONE_SIZE)
return 0;
#endif /* _MHD_USE_ASAN_POISON */
#endif /* MHD_ASAN_POISON_ACTIVE */
return (pool->end - pool->pos) - _MHD_RED_ZONE_SIZE;
}