gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 01/03: Removed redundant macro


From: gnunet
Subject: [libmicrohttpd] 01/03: Removed redundant macro
Date: Sat, 30 Oct 2021 11:57:31 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 2e39c6b9de6ffee4f3f01ac04838626c2c2403c4
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Oct 29 10:12:08 2021 +0300

    Removed redundant macro
---
 src/include/mhd_options.h   | 1 -
 src/microhttpd/memorypool.c | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/include/mhd_options.h b/src/include/mhd_options.h
index e405fd23..a4cc0a36 100644
--- 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
index f963031e..4002e59e 100644
--- 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;
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]