projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16b6c20
)
iso9660: set the type of get_inode_type()
author
H. Peter Anvin
<hpa@zytor.com>
Wed, 10 Mar 2010 05:19:09 +0000
(21:19 -0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Wed, 10 Mar 2010 05:19:09 +0000
(21:19 -0800)
get_inode_type() returns enum dirent_type.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/iso9660/iso9660.c
patch
|
blob
|
history
diff --git
a/core/fs/iso9660/iso9660.c
b/core/fs/iso9660/iso9660.c
index
9f2e5d2
..
4c568bf
100644
(file)
--- 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,