diff options
author | grehan <grehan@FreeBSD.org> | 2003-12-21 12:16:58 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2003-12-21 12:16:58 +0000 |
commit | 35ca817f498833bb9b97acbcb9e103b985dfb928 (patch) | |
tree | e8c2af1c308a65a230cbe4e400797617e0000b05 /sys/boot/ofw | |
parent | 5fe386cc276463408cf47ee59cdd429eb1fe1978 (diff) | |
download | FreeBSD-src-35ca817f498833bb9b97acbcb9e103b985dfb928.zip FreeBSD-src-35ca817f498833bb9b97acbcb9e103b985dfb928.tar.gz |
Use daddr_t instead of u_long for byte offset in strategy
routine to avoid >4G truncation on 32-bit systems.
no objection by: sparc64
Diffstat (limited to 'sys/boot/ofw')
-rw-r--r-- | sys/boot/ofw/libofw/ofw_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/ofw/libofw/ofw_disk.c b/sys/boot/ofw/libofw/ofw_disk.c index b6c3e6c..0dd252b 100644 --- a/sys/boot/ofw/libofw/ofw_disk.c +++ b/sys/boot/ofw/libofw/ofw_disk.c @@ -70,7 +70,7 @@ ofwd_strategy(void *devdata, int flag, daddr_t dblk, size_t size, char *buf, size_t *rsize) { struct ofw_devdesc *dp = (struct ofw_devdesc *)devdata; - unsigned long pos; + daddr_t pos; int n; int i, j; |