Minor corrections for the mkdir function, and some cleanup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4506 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1b44632aa0
commit
d070fc9627
1 changed files with 2 additions and 11 deletions
|
@ -488,17 +488,14 @@ int dbg_trunc(char* name, int size)
|
|||
|
||||
int dbg_mkdir(char* name)
|
||||
{
|
||||
char text[BUFSIZE+1];
|
||||
int i;
|
||||
int fd;
|
||||
int x=0;
|
||||
bool stop = false;
|
||||
|
||||
fd = mkdir(name);
|
||||
fd = mkdir(name, 0);
|
||||
if (fd<0) {
|
||||
DEBUGF("Failed creating directory\n");
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int dbg_cmd(int argc, char *argv[])
|
||||
|
@ -615,12 +612,6 @@ int dbg_cmd(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
|
||||
if (!strcasecmp(cmd, "dump"))
|
||||
{
|
||||
if (arg1)
|
||||
return mkdir(arg1);
|
||||
}
|
||||
|
||||
if (!strcasecmp(cmd, "wrtest"))
|
||||
{
|
||||
if (arg1)
|
||||
|
|
Loading…
Reference in a new issue