From e3a8099343aac9d94f411638ad84632d4b620132 Mon Sep 17 00:00:00 2001 From: Miguel Date: Mon, 15 Oct 2018 16:29:50 +0200 Subject: cleanup sys/ etc --- userspace/fsh.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'userspace/fsh.c') diff --git a/userspace/fsh.c b/userspace/fsh.c index 85fc5e4..17a3942 100644 --- a/userspace/fsh.c +++ b/userspace/fsh.c @@ -19,7 +19,7 @@ #include #include #include -#include "interface/fs.h" +#include extern char **environ; @@ -320,8 +320,7 @@ bool cd(char *path) } // check if exists - fs_dirent dirs; - if(-1==_readdir(buf,&dirs,0)) + if(NULL==opendir(buf)) { printf("directory not found!\n"); return false; -- cgit v1.2.3