summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/iostat.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-06 22:08:00 +0000
committerbde <bde@FreeBSD.org>1998-07-06 22:08:00 +0000
commitcd1f335715f421dbac6b0c93f528c7bf82c724d3 (patch)
tree5a965f5f256f48eb47f46c094a6979c5544d382d /usr.bin/systat/iostat.c
parent067f8c8dc926fe603627b3942b43d82910de2a5f (diff)
downloadFreeBSD-src-cd1f335715f421dbac6b0c93f528c7bf82c724d3.zip
FreeBSD-src-cd1f335715f421dbac6b0c93f528c7bf82c724d3.tar.gz
Fixed type mismatches which were fatal when sizeof(long) > sizeof(int).
Diffstat (limited to 'usr.bin/systat/iostat.c')
-rw-r--r--usr.bin/systat/iostat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/iostat.c b/usr.bin/systat/iostat.c
index cc8bacf4..b2bd40d 100644
--- a/usr.bin/systat/iostat.c
+++ b/usr.bin/systat/iostat.c
@@ -143,7 +143,7 @@ fetchiostat()
{
if (namelist[X_DK_BUSY].n_type == 0)
return;
- NREAD(X_DK_BUSY, &s.dk_busy, LONG);
+ NREAD(X_DK_BUSY, &s.dk_busy, sizeof(s.dk_busy));
NREAD(X_DK_TIME, s.dk_time, dk_ndrive * LONG);
NREAD(X_DK_XFER, s.dk_xfer, dk_ndrive * LONG);
NREAD(X_DK_WDS, s.dk_wds, dk_ndrive * LONG);
OpenPOWER on IntegriCloud