summaryrefslogtreecommitdiff
path: root/userspace/fsh.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-10-15 16:29:50 +0200
committerMiguel <m.i@gmx.at>2018-10-15 16:29:50 +0200
commite3a8099343aac9d94f411638ad84632d4b620132 (patch)
treef0a1f73ab106c17b25fd8a5264a66b6b48e55e48 /userspace/fsh.c
parentf35d2124c36f8d39a953b76620e081b79c2faffd (diff)
cleanup sys/ etc
Diffstat (limited to 'userspace/fsh.c')
-rw-r--r--userspace/fsh.c5
1 files changed, 2 insertions, 3 deletions
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 <string.h>
#include <errno.h>
#include <string.h>
-#include "interface/fs.h"
+#include <sys/dirent.h>
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;