aboutsummaryrefslogtreecommitdiff
path: root/src/compat/glibc_sanity.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-09-26 19:26:09 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-09-26 19:31:18 +0200
commitc2db599c1f1ad2d61b8176a2256a80109b0ac8b9 (patch)
tree74bfd745a7b148f1fe76c4a77e024be409412fb7 /src/compat/glibc_sanity.cpp
parent4b2b78b9f2bd339cc4505996258e00c186e91792 (diff)
parentcf42c36e9963f9cf13704d8d74a9546f0db33d40 (diff)
downloadbitcoin-c2db599c1f1ad2d61b8176a2256a80109b0ac8b9.tar.xz
Merge pull request #4977
cf42c36 Apply clang-format on crypto/* and compat/* (Pieter Wuille)
Diffstat (limited to 'src/compat/glibc_sanity.cpp')
-rw-r--r--src/compat/glibc_sanity.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/compat/glibc_sanity.cpp b/src/compat/glibc_sanity.cpp
index d93602e0fe..acc7809d77 100644
--- a/src/compat/glibc_sanity.cpp
+++ b/src/compat/glibc_sanity.cpp
@@ -14,10 +14,11 @@
extern "C" void* memcpy(void* a, const void* b, size_t c);
void* memcpy_int(void* a, const void* b, size_t c)
{
- return memcpy(a,b,c);
+ return memcpy(a, b, c);
}
-namespace {
+namespace
+{
// trigger: Use the memcpy_int wrapper which calls our internal memcpy.
// A direct call to memcpy may be optimized away by the compiler.
// test: Fill an array with a sequence of integers. memcpy to a new empty array.
@@ -31,11 +32,10 @@ bool sanity_test_memcpy()
for (unsigned int i = 0; i != T; ++i)
memcpy_test[i] = i;
- memcpy_int(memcpy_verify,memcpy_test,sizeof(memcpy_test));
+ memcpy_int(memcpy_verify, memcpy_test, sizeof(memcpy_test));
- for (unsigned int i = 0; i != T; ++i)
- {
- if(memcpy_verify[i] != i)
+ for (unsigned int i = 0; i != T; ++i) {
+ if (memcpy_verify[i] != i)
return false;
}
return true;
@@ -51,7 +51,7 @@ bool sanity_test_fdelt()
fd_set fds;
FD_ZERO(&fds);
FD_SET(0, &fds);
- return FD_ISSET(0,&fds);
+ return FD_ISSET(0, &fds);
}
#endif