libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 8d6d9be08d49507be48541d29d6cda9a5bc81452
parent b040c27828bc4aec02a3271a5686516b958e6b55
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Fri,  4 Nov 2022 17:49:09 +0300

Fixed macro name spelling

Diffstat:
Mconfigure.ac | 2+-
Msrc/include/mhd_options.h | 6+++---
Msrc/microhttpd/memorypool.c | 2+-
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -4040,7 +4040,7 @@ int ptr_process(void *ptr1, void *ptr2) ] ) AS_VAR_IF([mhd_cv_func_attribute_nosanitize_ptr], ["yes"], - [AC_DEFINE([FUNC_ATTR_PTRCOMPARE_WOKRS],[1],[Define to '1' if '__attribute__((no_sanitize("pointer-compare","pointer-subtract")))' works])], + [AC_DEFINE([FUNC_ATTR_PTRCOMPARE_WORKS],[1],[Define to '1' if '__attribute__((no_sanitize("pointer-compare","pointer-subtract")))' works])], [ AC_CACHE_CHECK([whether '__attribute__((no_sanitize("address")))' works for pointers compare], [mhd_cv_func_attribute_nosanitize_addr], [ diff --git a/src/include/mhd_options.h b/src/include/mhd_options.h @@ -156,17 +156,17 @@ #endif /* MHD_ASAN_ACTIVE */ #if defined(MHD_ASAN_ACTIVE) && defined(HAVE_SANITIZER_ASAN_INTERFACE_H) && \ - (defined(FUNC_ATTR_PTRCOMPARE_WOKRS) || defined(FUNC_ATTR_NOSANITIZE_WORKS)) + (defined(FUNC_ATTR_PTRCOMPARE_WORKS) || defined(FUNC_ATTR_NOSANITIZE_WORKS)) #ifndef MHD_ASAN_POISON_ACTIVE /* Manual ASAN poisoning could be used */ #warning User memory poisoning is not active #endif /* ! MHD_ASAN_POISON_ACTIVE */ #else /* ! (MHD_ASAN_ACTIVE && HAVE_SANITIZER_ASAN_INTERFACE_H && - (FUNC_ATTR_PTRCOMPARE_WOKRS || FUNC_ATTR_NOSANITIZE_WORKS)) */ + (FUNC_ATTR_PTRCOMPARE_WORKS || FUNC_ATTR_NOSANITIZE_WORKS)) */ #ifdef MHD_ASAN_POISON_ACTIVE #error User memory poisoning is active, but conditions are not suitable #endif /* MHD_ASAN_POISON_ACTIVE */ #endif /* ! (MHD_ASAN_ACTIVE && HAVE_SANITIZER_ASAN_INTERFACE_H && - (FUNC_ATTR_PTRCOMPARE_WOKRS || FUNC_ATTR_NOSANITIZE_WORKS)) */ + (FUNC_ATTR_PTRCOMPARE_WORKS || FUNC_ATTR_NOSANITIZE_WORKS)) */ #endif /* MHD_OPTIONS_H */ diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c @@ -103,7 +103,7 @@ #define _MHD_POISON_MEMORY(pointer, size) (void)0 #define _MHD_UNPOISON_MEMORY(pointer, size) (void)0 #else /* MHD_ASAN_POISON_ACTIVE */ -#if defined(FUNC_ATTR_PTRCOMPARE_WOKRS) +#if defined(FUNC_ATTR_PTRCOMPARE_WORKS) #define _MHD_NOSANITIZE_PTRS \ __attribute__((no_sanitize("pointer-compare","pointer-subtract"))) #elif defined(FUNC_ATTR_NOSANITIZE_WORKS)