diff options
| author | christos <christos@NetBSD.org> | 2003-01-18 21:18:18 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2003-01-18 21:18:18 +0000 |
| commit | 8e448c92b97baee85fc0ca07bc831015256ddcd8 (patch) | |
| tree | f6ba7c839e351920abdbdae47933a0ae5744e6da | |
| parent | c69d292b4359289e4fa79408d2d288ca1390ef0e (diff) | |
kill warns.
| -rw-r--r-- | usr.bin/systat/vmstat.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index b944d2d369e..8ed45f0ac93 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -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 @@ get_interrupt_events(void) 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; |
