summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/dir.c6
-rw-r--r--firmware/include/dir.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/firmware/common/dir.c b/firmware/common/dir.c
index 6ca3a76e3b..27666d26e9 100644
--- a/firmware/common/dir.c
+++ b/firmware/common/dir.c
@@ -28,7 +28,7 @@
static DIR opendirs[MAX_OPEN_DIRS];
-DIR* opendir(char* name)
+DIR* opendir(const char* name)
{
char namecopy[MAX_PATH];
char* part;
@@ -117,7 +117,7 @@ struct dirent* readdir(DIR* dir)
return theent;
}
-int mkdir(char *name, int mode)
+int mkdir(const char *name, int mode)
{
DIR *dir;
char namecopy[MAX_PATH];
@@ -182,7 +182,7 @@ int mkdir(char *name, int mode)
return rc;
}
-int rmdir(char* name)
+int rmdir(const char* name)
{
int rc;
DIR* dir;
diff --git a/firmware/include/dir.h b/firmware/include/dir.h
index 7de0276840..ae0aa29cff 100644
--- a/firmware/include/dir.h
+++ b/firmware/include/dir.h
@@ -71,10 +71,10 @@ typedef struct DIRtag
#ifndef DIRFUNCTIONS_DEFINED
-extern DIR* opendir(char* name);
+extern DIR* opendir(const char* name);
extern int closedir(DIR* dir);
-extern int mkdir(char* name, int mode);
-extern int rmdir(char* name);
+extern int mkdir(const char* name, int mode);
+extern int rmdir(const char* name);
extern struct dirent* readdir(DIR* dir);