From 3523a0f8a2e470ddbcd793e5f85b8634e82ad631 Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 31 Oct 2002 04:25:17 +0000 Subject: Actually save the bootblock in the disk structure. Write the bootblock to the right place on the disk instead of srewn all over it. --- lib/libdisk/write_sparc64_disk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libdisk/write_sparc64_disk.c') diff --git a/lib/libdisk/write_sparc64_disk.c b/lib/libdisk/write_sparc64_disk.c index 87b67a5..657b947 100644 --- a/lib/libdisk/write_sparc64_disk.c +++ b/lib/libdisk/write_sparc64_disk.c @@ -90,8 +90,8 @@ Write_Disk(const struct disk *d1) write_block(fd, 0, sl, sizeof *sl); - for(i = 1; i < 16; i++) - write_block(fd, i * 512, d1->boot1 + 512 * (i - 1), 512); + for (i = 1; i < 16; i++) + write_block(fd, i, d1->boot1 + (i * 512), 512); close(fd); return 0; -- cgit v1.1