From 3f8302037055f2bd7e8b59982bd4c5dbc8b325c6 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 7 Mar 2002 02:56:53 -0500 Subject: [PATCH] ls.c (list_dir_proc): Fix typo in debugfs which was causing a compiler warning. --- debugfs/ChangeLog | 5 +++++ debugfs/ls.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debugfs/ChangeLog b/debugfs/ChangeLog index 3a7990c7..ad377811 100644 --- a/debugfs/ChangeLog +++ b/debugfs/ChangeLog @@ -1,3 +1,8 @@ +2002-03-07 + + * ls.c (list_dir_proc): Fix typo in debugfs which was causing a + compiler warning. + 2002-03-05 Theodore Tso * lsdel.c (do_lsdel): lsdel uses the pager to print out the list diff --git a/debugfs/ls.c b/debugfs/ls.c index 96d2691f..7c5ae426 100644 --- a/debugfs/ls.c +++ b/debugfs/ls.c @@ -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))