From 73e44a5ff5cdb7412f8c87997e4c14b689339d9d Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 16 Feb 2014 12:34:25 +0100 Subject: [PATCH] Fix wrong return type of ModeToDT kernel function. --- sortix/fsfunc.cpp | 2 +- sortix/include/sortix/kernel/fsfunc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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