dos33: clean up whitespace

This commit is contained in:
Vince Weaver 2016-12-13 15:24:33 -05:00
parent 6c4b06ae1a
commit b758047c60

View File

@ -516,11 +516,15 @@ static int dos33_add_file(int fd,char type,char *filename,
if (ts_list<0) return -1;
/* clear the t/s sector */
for(x=0;x<BYTES_PER_SECTOR;x++) sector_buffer[x]=0;
for(x=0;x<BYTES_PER_SECTOR;x++) {
sector_buffer[x]=0;
}
lseek(fd,DISK_OFFSET((ts_list>>8)&0xff,ts_list&0xff),SEEK_SET);
result=write(fd,sector_buffer,BYTES_PER_SECTOR);
if (i==0) initial_ts_list=ts_list;
if (i==0) {
initial_ts_list=ts_list;
}
else {
/* we aren't the first t/s list so do special stuff */
@ -550,7 +554,6 @@ static int dos33_add_file(int fd,char type,char *filename,
}
}
/* allocate a sector */
data_ts=dos33_allocate_sector(fd);
sectors_used++;
@ -570,8 +573,6 @@ static int dos33_add_file(int fd,char type,char *filename,
// printf("Writing %i bytes to %i/%i\n",bytes_read,(data_ts>>8)&0xff,
// data_ts&0xff);
/* add to T/s table */
/* read in t/s list */