]> git.sur5r.net Git - cc65/blobdiff - libsrc/cbm/cbm_dir.c
Merge remote-tracking branch 'upstream/master'
[cc65] / libsrc / cbm / cbm_dir.c
index df3d21cb54ceaab2bd260cf0910a0eece4ec2dea..8f31c502ad70a6ed0bf18931031161310d328d1a 100644 (file)
@@ -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. */