File: patch-bsd_kernel_cc

package info (click to toggle)
xosview 1.8.3%2Bdebian-9
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,788 kB
  • ctags: 1,428
  • sloc: cpp: 9,506; sh: 4,257; ansic: 368; makefile: 89; awk: 20
file content (18 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD$

--- bsd/kernel.cc.orig	2003-10-14 03:53:17.000000000 +0200
+++ bsd/kernel.cc	2005-02-22 14:16:46.850986000 +0100
@@ -817,11 +817,11 @@ BSDGetDiskXFerBytes (unsigned long long 
 #if defined(NETBSD_1_6A)
   // Use the new sysctl to do this for us.
   int mib[3] = {CTL_HW, HW_DISKSTATS, sizeof(struct disk_sysctl)};
-  size_t sysctl_size = NetBSD_N_Drives * sizeof(struct disk_sysctl);
+  size_t sysctl_sz = NetBSD_N_Drives * sizeof(struct disk_sysctl);
   struct disk_sysctl drive_stats[NetBSD_N_Drives];
 
   // Do the sysctl.
-  if (sysctl(mib, 3, drive_stats, &sysctl_size, NULL, 0) < 0) {
+  if (sysctl(mib, 3, drive_stats, &sysctl_sz, NULL, 0) < 0) {
     err(1, "sysctl hw.diskstats failed");
   }