summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-02-03 10:28:55 +0000
committerJens Arnold <amiconn@rockbox.org>2007-02-03 10:28:55 +0000
commit6b0fdae0f604b0a0191f61c9496cfd880b88ab7b (patch)
tree007b5d062ee200806308a55439a682d77698c82c /firmware
parentae6abfb09468f06464ab3aaf0f51b9e8228584ba (diff)
downloadrockbox-6b0fdae0f604b0a0191f61c9496cfd880b88ab7b.tar.gz
rockbox-6b0fdae0f604b0a0191f61c9496cfd880b88ab7b.tar.bz2
rockbox-6b0fdae0f604b0a0191f61c9496cfd880b88ab7b.zip
Removed unused 'mode' parameter from mkdir() for consistency with creat().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12183 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/dir.c4
-rw-r--r--firmware/include/dir.h4
2 files changed, 3 insertions, 5 deletions
diff --git a/firmware/common/dir.c b/firmware/common/dir.c
index 00e3ade37d..bc44a53b70 100644
--- a/firmware/common/dir.c
+++ b/firmware/common/dir.c
@@ -219,7 +219,7 @@ struct dirent* readdir(DIR* dir)
return theent;
}
-int mkdir(const char *name, int mode)
+int mkdir(const char *name)
{
DIR *dir;
char namecopy[MAX_PATH];
@@ -230,8 +230,6 @@ int mkdir(const char *name, int mode)
struct fat_dir newdir;
int rc;
- (void)mode;
-
if ( name[0] != '/' ) {
DEBUGF("mkdir: Only absolute paths supported right now\n");
return -1;
diff --git a/firmware/include/dir.h b/firmware/include/dir.h
index c10640199f..c354082bec 100644
--- a/firmware/include/dir.h
+++ b/firmware/include/dir.h
@@ -36,7 +36,7 @@
#define opendir(x) sim_opendir(x)
#define readdir(x) sim_readdir(x)
#define closedir(x) sim_closedir(x)
-#define mkdir(x, y) sim_mkdir(x, y)
+#define mkdir(x) sim_mkdir(x)
#define rmdir(x) sim_rmdir(x)
#endif
@@ -75,7 +75,7 @@ typedef struct {
extern DIR* opendir(const char* name);
extern int closedir(DIR* dir);
-extern int mkdir(const char* name, int mode);
+extern int mkdir(const char* name);
extern int rmdir(const char* name);
extern struct dirent* readdir(DIR* dir);