1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

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