Skip to content

Commit

Permalink
Fix building in case of HAVE_EXPLICIT_BZERO
Browse files Browse the repository at this point in the history
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 <abrodkin@synopsys.com>
  • Loading branch information
abrodkin committed Jul 9, 2015
1 parent 557fcab commit 2d34799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.c
Expand Up @@ -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)
{
Expand Down

0 comments on commit 2d34799

Please sign in to comment.