Subject: pkg/25328: kdebase3
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <john@johnrshannon.com>
List: pkgsrc-bugs
Date: 04/25/2004 19:15:21
>Number:         25328
>Category:       pkg
>Synopsis:       Variable type change to match getMntPnt() change
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 26 01:16:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     John R. Shannon
>Release:        NetBSD 2.0E
>Organization:
	johnrshannon.com
>Environment:
System: NetBSD colleen.internal.johnrshannon.com 2.0E NetBSD 2.0E (KERNEL) #0: Sun Apr 25 07:44:57 MDT 2004 root@colleen.internal.johnrshannon.com:/usr/obj/usr/src/sys/arch/i386/compile/KERNEL i386
Architecture: i386
Machine: i386
>Description:
	getMntPnt() and friends changed argument type from statfs to statvfs
>How-To-Repeat:
	
>Fix:

$NetBSD$

--- ksysguard/ksysguardd/NetBSD/diskstat.c.orig	2003-03-12 05:26:05.000000000 -0700
+++ ksysguard/ksysguardd/NetBSD/diskstat.c
@@ -64,7 +64,7 @@ char *getMntPnt(const char *cmd)
 
 int numMntPnt(void)
 {
-	struct statfs *fs_info;
+	struct statvfs *fs_info;
 	int i, n, counter = 0;
 
 	n = getmntinfo(&fs_info, MNT_WAIT);
@@ -130,8 +130,8 @@ void exitDiskStat(void)
 
 int updateDiskStat(void)
 {
-	struct statfs *fs_info;
-	struct statfs fs;
+	struct statvfs *fs_info;
+	struct statvfs fs;
 	float percent;
 	int i, mntcount;
 	DiskInfo *disk_info;
>Release-Note:
>Audit-Trail:
>Unformatted: