Fix compilation errors.

I wonder how I managed to cross-compile this yesterday.
This commit is contained in:
phk 2003-04-22 05:34:35 +00:00
parent 632a97ab8a
commit d20f3763cb

View File

@ -34,7 +34,6 @@ Write_Disk(const struct disk *d1)
int i;
char *p;
u_long secpercyl;
u_short *sp1, *sp2, cksum;
char device[64];
u_char buf[SUN_SIZE];
int fd;
@ -99,7 +98,7 @@ Write_Disk(const struct disk *d1)
sl->sl_part[SUN_RAWPART].sdkp_nsectors = sl->sl_ncylinders * secpercyl;
memset(buf, 0, sizeof buf);
sunlabel_enc(buf, &sl);
sunlabel_enc(buf, sl);
write_block(fd, 0, buf, sizeof buf);
close(fd);