commit 2e39c6b9de6ffee4f3f01ac04838626c2c2403c4
parent 8b0b7ea28aba8155930894f673a1daf1c03a821a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Fri, 29 Oct 2021 10:12:08 +0300
Removed redundant macro
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/include/mhd_options.h b/src/include/mhd_options.h
@@ -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
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c
@@ -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;
}