summaryrefslogtreecommitdiff
path: root/benchmarks/interbench/files/patch-interbench.c
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2015-11-19 16:16:46 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2015-11-19 16:16:46 +0000
commitff1d116f2d756bda56aea00ee71efa55940315a4 (patch)
treefb000666405736d4d4425c9082b373a8ce0fa5ab /benchmarks/interbench/files/patch-interbench.c
parentUpdate to version 1.1.2. (diff)
Flush a short queue of minor non-functional changes sitting it my tree:
- Escape literal dot properly in sed(1) code (for REINPLACE_CMD) - Spell "C-string" correctly in COMMENT and add a missing newline - Use NULL for pointer in C code (original snippet was for C++ and Bjarne prefers to avoid macros, per his C++ Style and Technique FAQ)
Diffstat (limited to 'benchmarks/interbench/files/patch-interbench.c')
-rw-r--r--benchmarks/interbench/files/patch-interbench.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/interbench/files/patch-interbench.c b/benchmarks/interbench/files/patch-interbench.c
index 000a957af176..ec51146ac221 100644
--- a/benchmarks/interbench/files/patch-interbench.c
+++ b/benchmarks/interbench/files/patch-interbench.c
@@ -50,7 +50,7 @@
+
+ pagesize = sysconf(_SC_PAGESIZE);
+ numpages = sysconf(_SC_PHYS_PAGES);
-+ if (sysctlbyname("vm.swap_total", &swap, &len, 0x0, 0) == -1)
++ if (sysctlbyname("vm.swap_total", &swap, &len, NULL, 0) == -1)
+ swap = 0;
+
+ ud.ram = pagesize / 1024 * numpages;