summaryrefslogtreecommitdiff
path: root/ufs/sizes.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-04-23 18:47:47 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-04-23 18:47:47 +0000
commit1fda78835568c07e7552fc067545d3a7bd0d7c19 (patch)
treee8ae3b482a8c081d9c463711526bd45f8dd36a91 /ufs/sizes.c
parent323a9a48e8fff909535923556a7c361b3790f131 (diff)
fixup
Diffstat (limited to 'ufs/sizes.c')
-rw-r--r--ufs/sizes.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ufs/sizes.c b/ufs/sizes.c
index a5be68ea..8e4a85e9 100644
--- a/ufs/sizes.c
+++ b/ufs/sizes.c
@@ -361,7 +361,7 @@ offer_data (struct node *np,
{
vm_address_t addr;
- len = round_page (size);
+ len = round_page (len);
assert (start % vm_page_size == 0);
@@ -402,7 +402,8 @@ block_extended (struct node *np,
(void *) &buf, vm_page_size);
/* If this page is the last one, then zero the excess first */
if (off + vm_page_size > old_size)
- bzero (buf + old_size - off, vm_page_size - (old_size - off));
+ bzero ((vod *)(buf + old_size - off),
+ vm_page_size - (old_size - off));
offer_data (np, lbn * sblock->fs_bsize + off, vm_page_size, buf);
}