Fix wrong return type of ModeToDT kernel function.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-02-16 12:34:25 +01:00
parent 0235fc3a62
commit 73e44a5ff5
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@
namespace Sortix {
bool ModeToDT(mode_t mode)
unsigned char ModeToDT(mode_t mode)
{
if ( S_ISSOCK(mode) )
return DT_SOCK;

View File

@ -33,7 +33,7 @@ static inline bool IsDotOrDotDot(const char* path)
(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);
} // namespace Sortix