From 7c81854fcbbf797b494d543fb2d051820fccf8d9 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Wed, 27 Mar 2024 19:57:27 +0300 Subject: [PATCH] safe_mem.h: simplify conditional compilation for *BSD --- c-programming/mem/safe_mem.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/c-programming/mem/safe_mem.h b/c-programming/mem/safe_mem.h index 92a4640..450e99b 100644 --- a/c-programming/mem/safe_mem.h +++ b/c-programming/mem/safe_mem.h @@ -32,8 +32,7 @@ typedef unsigned char byte; malloc((size_t) (nmemb) * (size_t) (size)) /* secure_erase(dest, count): erases memory explicitly */ -#if defined(__OpenBSD__) && !defined(SAFE_MEM_OLD_BSD) || \ - defined(__FreeBSD__) && !defined(SAFE_MEM_OLD_BSD) +#if (defined(__OpenBSD__) || defined(__FreeBSD__)) && !defined(SAFE_MEM_OLD_BSD) # define NO_SECURE_ERASE_WARRANTY 0 # define SECURE_ERASE_WARRANTY "OpenBSD/FreeBSD: explicit_bzero"