summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/dir.c4
-rw-r--r--firmware/include/dir.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/firmware/common/dir.c b/firmware/common/dir.c
index 001508a552..e33bb7fc8f 100644
--- a/firmware/common/dir.c
+++ b/firmware/common/dir.c
@@ -115,7 +115,7 @@ struct dirent* readdir(DIR* dir)
115 return theent; 115 return theent;
116} 116}
117 117
118int mkdir(char *name) 118int mkdir(char *name, int mode)
119{ 119{
120 DIR *dir; 120 DIR *dir;
121 char namecopy[MAX_PATH]; 121 char namecopy[MAX_PATH];
@@ -125,6 +125,8 @@ int mkdir(char *name)
125 struct dirent *entry; 125 struct dirent *entry;
126 struct fat_dir newdir; 126 struct fat_dir newdir;
127 int rc; 127 int rc;
128
129 (void)mode;
128 130
129 if ( name[0] != '/' ) { 131 if ( name[0] != '/' ) {
130 DEBUGF("Only absolute paths supported right now\n"); 132 DEBUGF("Only absolute paths supported right now\n");
diff --git a/firmware/include/dir.h b/firmware/include/dir.h
index 28a0a02c88..ab8e15ffa6 100644
--- a/firmware/include/dir.h
+++ b/firmware/include/dir.h
@@ -72,7 +72,7 @@ typedef struct DIRtag
72 72
73extern DIR* opendir(char* name); 73extern DIR* opendir(char* name);
74extern int closedir(DIR* dir); 74extern int closedir(DIR* dir);
75extern int mkdir(char* name); 75extern int mkdir(char* name, int mode);
76 76
77extern struct dirent* readdir(DIR* dir); 77extern struct dirent* readdir(DIR* dir);
78 78