diff --git a/sortix/fsfunc.cpp b/sortix/fsfunc.cpp index e65807f6..772fc273 100644 --- a/sortix/fsfunc.cpp +++ b/sortix/fsfunc.cpp @@ -38,7 +38,7 @@ namespace Sortix { -bool ModeToDT(mode_t mode) +unsigned char ModeToDT(mode_t mode) { if ( S_ISSOCK(mode) ) return DT_SOCK; diff --git a/sortix/include/sortix/kernel/fsfunc.h b/sortix/include/sortix/kernel/fsfunc.h index acabe150..51b7b45c 100644 --- a/sortix/include/sortix/kernel/fsfunc.h +++ b/sortix/include/sortix/kernel/fsfunc.h @@ -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