aboutsummaryrefslogtreecommitdiffstats
path: root/games/openbor3979
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2019-08-12 06:36:31 +0800
committerjbeich <jbeich@FreeBSD.org>2019-08-12 06:36:31 +0800
commit96b0078dc88e7964d8ceec98568d57666878c94f (patch)
tree42af34abbde4e20568ac7c4ecdf9cb0cfc5e0c6a /games/openbor3979
parent3430046ca1fe9e0c294bf29ea1b21230b7dde09d (diff)
downloadfreebsd-ports-gnome-96b0078dc88e7964d8ceec98568d57666878c94f.tar.gz
freebsd-ports-gnome-96b0078dc88e7964d8ceec98568d57666878c94f.tar.zst
freebsd-ports-gnome-96b0078dc88e7964d8ceec98568d57666878c94f.zip
games/openbor: untabify after r508689
Diffstat (limited to 'games/openbor3979')
-rw-r--r--games/openbor3979/files/patch-source_ramlib_ram.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/openbor3979/files/patch-source_ramlib_ram.c b/games/openbor3979/files/patch-source_ramlib_ram.c
index eb06b6b133b7..8d31053517f0 100644
--- a/games/openbor3979/files/patch-source_ramlib_ram.c
+++ b/games/openbor3979/files/patch-source_ramlib_ram.c
@@ -83,7 +83,7 @@ Implement Linux-like memory stats for BSDs
+ return 0;
+ }
+ return (u64)(vms.v_free_count + vms.v_inactive_count
-+ + vms.v_cache_count) * getpagesize() / byte_size;
++ + vms.v_cache_count) * getpagesize() / byte_size;
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+ u_int v_free_count = 0, v_inactive_count = 0, v_cache_count = 0;
+ size_t sz = sizeof(u_int);
@@ -94,7 +94,7 @@ Implement Linux-like memory stats for BSDs
+ sysctlbyname("vm.stats.vm.v_cache_count",
+ &v_cache_count, &sz, NULL, 0);
+ return (u64)(v_free_count + v_inactive_count
-+ + v_cache_count) * getpagesize() / byte_size;
++ + v_cache_count) * getpagesize() / byte_size;
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
+# if defined(__NetBSD__)
+#undef VM_UVMEXP
@@ -116,7 +116,7 @@ Implement Linux-like memory stats for BSDs
+ return 0;
+ }
+ return (u64)(uvmexp.free + uvmexp.inactive + uvmexp.filepages
-+ + uvmexp.execpages) * uvmexp.pagesize / byte_size;
++ + uvmexp.execpages) * uvmexp.pagesize / byte_size;
#elif LINUX
struct sysinfo info;
sysinfo(&info);