X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libsrc%2Fcbm%2Fcbm_dir.c;h=8f31c502ad70a6ed0bf18931031161310d328d1a;hb=6a92d8b987ef98b97fced19533573c9e74b208a9;hp=df3d21cb54ceaab2bd260cf0910a0eece4ec2dea;hpb=2f87dbc27e484a31fada5a4dcfe92e564a557ce5;p=cc65 diff --git a/libsrc/cbm/cbm_dir.c b/libsrc/cbm/cbm_dir.c index df3d21cb5..8f31c502a 100644 --- a/libsrc/cbm/cbm_dir.c +++ b/libsrc/cbm/cbm_dir.c @@ -117,11 +117,11 @@ unsigned char __fastcall__ cbm_readdir (unsigned char lfn, register struct cbm_d if (is_header) { l_dirent->type = CBM_T_HEADER; - /* Get the disk-format code. */ - i = 6; - do { - l_dirent->access = byte = cbm_k_basin(); - } while (--i != 0); + /* Get the disk-format code. */ + i = 6; + do { + l_dirent->access = byte = cbm_k_basin(); + } while (--i != 0); } else { /* Go to the file-type column. */ @@ -144,10 +144,10 @@ unsigned char __fastcall__ cbm_readdir (unsigned char lfn, register struct cbm_d /* Determine the file type */ l_dirent->type = _cbm_filetype (byte); - /* Notice whether it's a directory or a deleted file. */ - if (cbm_k_basin() == 'i' && byte == 'd') { - l_dirent->type = CBM_T_DIR; - } + /* Notice whether it's a directory or a deleted file. */ + if (cbm_k_basin() == 'i' && byte == 'd') { + l_dirent->type = CBM_T_DIR; + } cbm_k_basin(); /* Locked files shouldn't be written. */