dos33: more whitespace cleanups

This commit is contained in:
Vince Weaver 2016-12-09 00:17:28 -05:00
parent 1e90deb41c
commit 6c4b06ae1a

View File

@ -322,7 +322,6 @@ static int find_first_one(unsigned char byte) {
static int dos33_free_sector(int fd,int track,int sector) {
unsigned char vtoc[BYTES_PER_SECTOR];
int result;
@ -347,7 +346,6 @@ static int dos33_free_sector(int fd,int track,int sector) {
if (result<0) fprintf(stderr,"Error on I/O\n");
return 0;
}
static int dos33_allocate_sector(int fd) {
@ -376,13 +374,10 @@ static int dos33_allocate_sector(int fd) {
start_track,track_dir);
}
i=start_track;
do {
for(byte=1;byte>-1;byte--) {
bitmap[byte]=sector_buffer[VTOC_FREE_BITMAPS+(i*4)+byte];
if (bitmap[byte]!=0x00) {
found_sector=find_first_one(bitmap[byte]);
@ -405,7 +400,6 @@ static int dos33_allocate_sector(int fd) {
i=VTOC_TRACK;
track_dir=-1;
}
} while (i!=start_track);
fprintf(stderr,"No room left!\n");
@ -420,6 +414,7 @@ found_one:
/* Seek to VTOC */
lseek(fd,DISK_OFFSET(VTOC_TRACK,VTOC_SECTOR),SEEK_SET);
/* Write out VTOC */
result=write(fd,&sector_buffer,BYTES_PER_SECTOR);