aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2015-11-20 00:16:46 +0800
committerdanfe <danfe@FreeBSD.org>2015-11-20 00:16:46 +0800
commit69ec36ee8794805f5d5f82c20ff6189f46e294cf (patch)
treefb000666405736d4d4425c9082b373a8ce0fa5ab /benchmarks
parent78fb08d2d8251a79015d384dd156db6b495398c4 (diff)
downloadfreebsd-ports-gnome-69ec36ee8794805f5d5f82c20ff6189f46e294cf.tar.gz
freebsd-ports-gnome-69ec36ee8794805f5d5f82c20ff6189f46e294cf.tar.zst
freebsd-ports-gnome-69ec36ee8794805f5d5f82c20ff6189f46e294cf.zip
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')
-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;