aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2004-02-14 07:18:35 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2004-02-14 07:18:35 +0000
commit00535086d3a922b17e2beead589f92e6cd585ff8 (patch)
tree39749b1efaaad8c42f3be50320a00cac0799aacc /net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c
parentb6deb36621300a80aab2d23031a1a259f9b0ce01 (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_5_2_1'.release/5.2.1
Notes
Notes: svn path=/head/; revision=100899 svn path=/tags/RELEASE_5_2_1/; revision=100900; tag=release/5.2.1
Diffstat (limited to 'net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c')
-rw-r--r--net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c b/net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c
deleted file mode 100644
index 47f5da45ccc7..000000000000
--- a/net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c
+++ /dev/null
@@ -1,35 +0,0 @@
---- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Sat Nov 9 23:59:53 2002
-+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Sat Aug 16 17:09:01 2003
-@@ -207,11 +207,13 @@
- auto_nlist(NSWDEV_SYMBOL, (char *) &nswdev, sizeof(nswdev));
- auto_nlist(DMMAX_SYMBOL, (char *) &dmmax, sizeof(dmmax));
-
-+#if !defined(freebsd5)
- sw = (struct swdevt *) malloc(nswdev * sizeof(*sw));
- if (sw == NULL)
- return;
-
- auto_nlist(SWDEVT_SYMBOL, (char *) sw, nswdev * sizeof(*sw));
-+#endif
-
- n = kvm_getswapinfo(kd, kswap, sizeof(kswap) / sizeof(kswap[0]), 0);
-
-@@ -242,7 +244,9 @@
- swapUsed *= pagesize;
- swapFree *= pagesize;
-
-+#if !defined(freebsd5)
- free(sw);
-+#endif
- }
- #endif
-
-@@ -274,7 +278,7 @@
- size_t total_size = sizeof(total);
- int total_mib[] = { CTL_VM, VM_METER };
-
-- long phys_mem;
-+ u_long phys_mem;
- size_t phys_mem_size = sizeof(phys_mem);
- int phys_mem_mib[] = { CTL_HW, HW_USERMEM };
-