diff options
author | danfe <danfe@FreeBSD.org> | 2015-11-20 00:16:46 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2015-11-20 00:16:46 +0800 |
commit | 69ec36ee8794805f5d5f82c20ff6189f46e294cf (patch) | |
tree | fb000666405736d4d4425c9082b373a8ce0fa5ab /benchmarks | |
parent | 78fb08d2d8251a79015d384dd156db6b495398c4 (diff) | |
download | freebsd-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.c | 2 |
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; |