aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/symon
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2005-09-28 03:03:43 +0800
committergarga <garga@FreeBSD.org>2005-09-28 03:03:43 +0800
commit596db98cf44118dcb996e44976229cd797d45c97 (patch)
tree9005a419914578caeed1e90888c0aa8af9eb6564 /sysutils/symon
parent3a5f9bc5ce2c011a81f81c17797c0691e66340e0 (diff)
downloadfreebsd-ports-gnome-596db98cf44118dcb996e44976229cd797d45c97.tar.gz
freebsd-ports-gnome-596db98cf44118dcb996e44976229cd797d45c97.tar.zst
freebsd-ports-gnome-596db98cf44118dcb996e44976229cd797d45c97.zip
- Fix uninitialized variables
PR: ports/86639 Submitted by: maintainer
Diffstat (limited to 'sysutils/symon')
-rw-r--r--sysutils/symon/Makefile1
-rw-r--r--sysutils/symon/files/patch-sm_mem.c19
2 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/symon/Makefile b/sysutils/symon/Makefile
index 91df4666191a..734d7df8cd74 100644
--- a/sysutils/symon/Makefile
+++ b/sysutils/symon/Makefile
@@ -7,6 +7,7 @@
PORTNAME= symon
PORTVERSION= 2.71
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.xs4all.nl/~wpd/symon/philes/
diff --git a/sysutils/symon/files/patch-sm_mem.c b/sysutils/symon/files/patch-sm_mem.c
new file mode 100644
index 000000000000..214892ff23ce
--- /dev/null
+++ b/sysutils/symon/files/patch-sm_mem.c
@@ -0,0 +1,19 @@
+--- platform/FreeBSD/sm_mem.c.orig Tue Sep 27 18:32:40 2005
++++ platform/FreeBSD/sm_mem.c Tue Sep 27 19:00:29 2005
+@@ -119,6 +119,7 @@
+ me_stats[1] = pagetob(me_vmtotal.t_rm);
+ me_stats[2] = pagetob(me_vmtotal.t_free);
+
++ me_stats[3] = me_stats[4] = 0;
+ #ifdef HAS_XSWDEV
+ vmnswp_siz = sizeof (int);
+ if (sysctl(me_vmnswp_mib_nam, me_vmnswp_mib_len, &vmnswp_dat, (void *)&vmnswp_siz, NULL, 0) < 0) {
+@@ -134,8 +135,6 @@
+ me_stats[3] += (vmiswp_dat.xsw_used * DEV_BSIZE);
+ me_stats[4] += (vmiswp_dat.xsw_nblks * DEV_BSIZE);
+ }
+-#else
+- me_stats[3] = me_stats[4] = 0;
+ #endif
+
+ return snpack(symon_buf, maxlen, s, MT_MEM,