From 2d34799585dc65c8c314a2f09a281874dd9b3d55 Mon Sep 17 00:00:00 2001 From: Alexey Brodkin Date: Thu, 9 Jul 2015 09:38:25 +0300 Subject: [PATCH] Fix building in case of HAVE_EXPLICIT_BZERO Currently if toolchain has implementation of explicit_bzero() and so HAVE_EXPLICIT_BZERO gets defined during configuration compilation will fail that way: ------------------------------------>8------------------------------ utils.c: In function 'pure_memzero': utils.c:49:1: error: expected declaration or statement at end of input } ^ ------------------------------------>8------------------------------ That happens because closing "#endif" is put 1 line below than really meant. Signed-off-by: Alexey Brodkin --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index 228a8dc9..f41492d5 100644 --- a/src/utils.c +++ b/src/utils.c @@ -25,8 +25,8 @@ void pure_memzero(void * const pnt, const size_t len) while (i < len) { pnt_[i++] = 0U; } -} # endif +} int pure_memcmp(const void * const b1_, const void * const b2_, size_t len) {