summaryrefslogtreecommitdiff
path: root/programs/util.h
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2017-07-14 14:51:28 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2017-07-14 14:51:28 +0000
commitaffe9eaf7807e0a5c3aa99d79dece91c3bbc3854 (patch)
tree86f382469abb446221bb5f590e38193c99fc4214 /programs/util.h
parentffcbc2d7ba03067492045e4cbead519a3b3c27ef (diff)
Diffstat (limited to 'programs/util.h')
-rw-r--r--programs/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/programs/util.h b/programs/util.h
index 5f437b2b268c4..dd971e0f884b5 100644
--- a/programs/util.h
+++ b/programs/util.h
@@ -208,7 +208,7 @@ UTIL_STATIC int UTIL_getFileStat(const char* infilename, stat_t *statbuf)
}
-UTIL_STATIC int UTIL_isRegFile(const char* infilename)
+UTIL_STATIC int UTIL_isRegularFile(const char* infilename)
{
stat_t statbuf;
return UTIL_getFileStat(infilename, &statbuf); /* Only need to know whether it is a regular file */
@@ -609,7 +609,7 @@ UTIL_STATIC int UTIL_countPhysicalCores(void)
/* try to determine if there's hyperthreading */
{ FILE* const cpuinfo = fopen("/proc/cpuinfo", "r");
- size_t const BUF_SIZE = 80;
+#define BUF_SIZE 80
char buff[BUF_SIZE];
int siblings = 0;