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/disks.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/disks.c')
-rw-r--r-- | usr.bin/systat/disks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/disks.c b/usr.bin/systat/disks.c index 1e97fdb..f3ac91d 100644 --- a/usr.bin/systat/disks.c +++ b/usr.bin/systat/disks.c @@ -110,7 +110,7 @@ dkinit() error("dk_ndrive undefined in kernel"); return(0); } - NREAD(X_DK_NDRIVE, &dk_ndrive, LONG); + NREAD(X_DK_NDRIVE, &dk_ndrive, sizeof(dk_ndrive)); if (dk_ndrive <= 0) { error("dk_ndrive=%d according to %s", dk_ndrive, getbootfile()); return(0); |