From ff1d116f2d756bda56aea00ee71efa55940315a4 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Thu, 19 Nov 2015 16:16:46 +0000 Subject: 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) --- benchmarks/interbench/files/patch-interbench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benchmarks/interbench/files/patch-interbench.c') 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; -- cgit v1.2.3