Fix wrong return type of ModeToDT kernel function.
This commit is contained in:
parent
0235fc3a62
commit
73e44a5ff5
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
namespace Sortix {
|
namespace Sortix {
|
||||||
|
|
||||||
bool ModeToDT(mode_t mode)
|
unsigned char ModeToDT(mode_t mode)
|
||||||
{
|
{
|
||||||
if ( S_ISSOCK(mode) )
|
if ( S_ISSOCK(mode) )
|
||||||
return DT_SOCK;
|
return DT_SOCK;
|
||||||
|
|
|
@ -33,7 +33,7 @@ static inline bool IsDotOrDotDot(const char* path)
|
||||||
(path[1] == '.' && path[2] == '\0'));
|
(path[1] == '.' && path[2] == '\0'));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ModeToDT(mode_t mode);
|
unsigned char ModeToDT(mode_t mode);
|
||||||
bool SplitFinalElem(const char* path, char** dir, char** final);
|
bool SplitFinalElem(const char* path, char** dir, char** final);
|
||||||
|
|
||||||
} // namespace Sortix
|
} // namespace Sortix
|
||||||
|
|
Loading…
Reference in New Issue