Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/systat kill warns.



details:   https://anonhg.NetBSD.org/src/rev/36870304d99d
branches:  trunk
changeset: 541811:36870304d99d
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 18 21:18:18 2003 +0000

description:
kill warns.

diffstat:

 usr.bin/systat/vmstat.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 81911744ec7d -r 36870304d99d usr.bin/systat/vmstat.c
--- a/usr.bin/systat/vmstat.c   Sat Jan 18 21:13:58 2003 +0000
+++ b/usr.bin/systat/vmstat.c   Sat Jan 18 21:18:18 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmstat.c,v 1.44 2003/01/18 21:02:35 dsl Exp $  */
+/*     $NetBSD: vmstat.c,v 1.45 2003/01/18 21:18:18 christos Exp $     */
 
 /*-
  * Copyright (c) 1983, 1989, 1992, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)vmstat.c   8.2 (Berkeley) 1/12/94";
 #endif
-__RCSID("$NetBSD: vmstat.c,v 1.44 2003/01/18 21:02:35 dsl Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.45 2003/01/18 21:18:18 christos Exp $");
 #endif /* not lint */
 
 /*
@@ -197,9 +197,11 @@
                ie->ie_name = malloc(evcnt.ev_namelen + 1);
                if (ie->ie_group == NULL || ie->ie_name == NULL)
                        return;
-               if (!KREAD(evcnt.ev_group, ie->ie_group, evcnt.ev_grouplen + 1))
+               if (!KREAD((char *)evcnt.ev_group, ie->ie_group,
+                   evcnt.ev_grouplen + 1))
                        return;
-               if (!KREAD(evcnt.ev_name, ie->ie_name, evcnt.ev_namelen + 1))
+               if (!KREAD((char *)evcnt.ev_name, ie->ie_name,
+                   evcnt.ev_namelen + 1))
                        return;
                ie->ie_count = &evptr->ev_count;
                ie->ie_loc = 0;



Home | Main Index | Thread Index | Old Index