Commit 1bf85139 by Tobias Schuele

Fixed cpplint warning in core_set.c.

parent 21176e64
...@@ -103,9 +103,9 @@ unsigned int embb_core_count_available() { ...@@ -103,9 +103,9 @@ unsigned int embb_core_count_available() {
#ifdef EMBB_HAS_HEADER_SYSINFO #ifdef EMBB_HAS_HEADER_SYSINFO
return get_nprocs(); return get_nprocs();
#elif defined __FreeBSD__ #elif defined __FreeBSD__
const size_t bs = sizeof(unsigned int); const size_t kBufferSize = sizeof(unsigned int);
char buf[bs]; char buf[kBufferSize];
size_t len = bs; size_t len = kBufferSize;
sysctlbyname("hw.ncpu", buf, &len, NULL, 0); sysctlbyname("hw.ncpu", buf, &len, NULL, 0);
return *(unsigned int*)&buf; return *(unsigned int*)&buf;
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment