[syslinux:pathbased] iso9660: set the type of get_inode_type()

syslinux-bot for H. Peter Anvin hpa at zytor.com
Tue Mar 9 21:24:06 PST 2010


Commit-ID:  1974cc50c5aac8ac5369a0361a5ac0c15f6911e2
Gitweb:     http://syslinux.zytor.com/commit/1974cc50c5aac8ac5369a0361a5ac0c15f6911e2
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Tue, 9 Mar 2010 21:19:09 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Tue, 9 Mar 2010 21:19:09 -0800

iso9660: set the type of get_inode_type()

get_inode_type() returns enum dirent_type.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 core/fs/iso9660/iso9660.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/core/fs/iso9660/iso9660.c b/core/fs/iso9660/iso9660.c
index 9f2e5d2..4c568bf 100644
--- a/core/fs/iso9660/iso9660.c
+++ b/core/fs/iso9660/iso9660.c
@@ -184,12 +184,9 @@ iso_find_entry(const char *dname, struct inode *inode)
     }
 }
 
-static inline int get_inode_mode(uint8_t flags)
+static inline enum dirent_type get_inode_mode(uint8_t flags)
 {
-    if (flags & 0x02)
-	return DT_DIR;
-    else
-	return DT_REG;
+    return (flags & 0x02) ? DT_DIR : DT_REG;
 }
 
 static struct inode *iso_get_inode(struct fs_info *fs,



More information about the Syslinux-commits mailing list