Whamcloud - gitweb
ls.c (list_dir_proc): Fix typo in debugfs which was causing a
authorTheodore Ts'o <tytso@mit.edu>
Thu, 7 Mar 2002 07:56:53 +0000 (02:56 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 7 Mar 2002 07:56:53 +0000 (02:56 -0500)
compiler warning.

debugfs/ChangeLog
debugfs/ls.c

index 3a7990c..ad37781 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-07    <tytso@snap.thunk.org>
+
+       * ls.c (list_dir_proc): Fix typo in debugfs which was causing a
+               compiler warning.
+
 2002-03-05  Theodore Tso  <tytso@mit.edu>
 
        * lsdel.c (do_lsdel): lsdel uses the pager to print out the list
index 96d2691..7c5ae42 100644 (file)
@@ -90,7 +90,7 @@ static int list_dir_proc(ext2_ino_t dir,
                        strcpy(datestr, "                 ");
                        memset(&inode, 0, sizeof(struct ext2_inode));
                }
-               d2 = (struct dir_entry_2 *) dirent;
+               d2 = (struct ext2_dir_entry_2 *) dirent;
                fprintf(ls->f, "%c%6u%c %6o (%d)  %5d  %5d   ", lbr, ino, rbr,
                        inode.i_mode, d2->file_type, inode.i_uid, inode.i_gid);
                if (LINUX_S_ISDIR(inode.i_mode))