diff options
author | bde <bde@FreeBSD.org> | 1998-07-06 22:08:00 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-06 22:08:00 +0000 |
commit | cd1f335715f421dbac6b0c93f528c7bf82c724d3 (patch) | |
tree | 5a965f5f256f48eb47f46c094a6979c5544d382d /usr.bin/systat/iostat.c | |
parent | 067f8c8dc926fe603627b3942b43d82910de2a5f (diff) | |
download | FreeBSD-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.c | 2 |
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); |