mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-09-17 08:54:50 +00:00
dos33: more whitespace cleanups
This commit is contained in:
parent
1e90deb41c
commit
6c4b06ae1a
@ -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,§or_buffer,BYTES_PER_SECTOR);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user