Formatting workaround to make clang-format happy on OSX (#3467)

Co-authored-by: theohax <theo@nano.org>
This commit is contained in:
clemahieu 2021-09-22 16:05:18 +01:00 committed by GitHub
commit 9e2e8d259e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -42,7 +42,6 @@ void NOT_OPTIMIZED nano::secure_wipe_memory (void * v, size_t n)
#elif defined(HAVE_EXPLICIT_BZERO)
explicit_bzero (v, n);
#else
static void * (*const volatile memset_sec)(void *, int, size_t) = &memset;
memset_sec (v, 0, n);
memset (v, 0, n);
#endif
}

View file

@ -37,7 +37,7 @@
std::size_t nano::get_file_descriptor_limit ()
{
std::size_t fd_limit = (std::numeric_limits<std::size_t>::max)();
std::size_t fd_limit = std::numeric_limits<std::size_t>::max ();
#ifndef _WIN32
rlimit limit{};
if (getrlimit (RLIMIT_NOFILE, &limit) == 0)