Replace callse to ioctl() in the OS to file_ioctl()

This commit is contained in:
Gregory Nutt
2018-09-15 11:47:24 -06:00
parent 5a0c6547d9
commit a83b6d990b
6 changed files with 71 additions and 73 deletions

View File

@@ -91,7 +91,7 @@ static struct binfmt_s g_builtin_binfmt =
static int builtin_loadbinary(struct binary_s *binp)
{
FAR const char *filename;
FAR const struct builtin_s *b;
FAR const struct builtin_s *builtin;
int fd;
int index;
int ret;
@@ -138,10 +138,10 @@ static int builtin_loadbinary(struct binary_s *binp)
* the priority. That is a bug and needs to be fixed.
*/
b = builtin_for_index(index);
binp->entrypt = b->main;
binp->stacksize = b->stacksize;
binp->priority = b->priority;
builtin = builtin_for_index(index);
binp->entrypt = builtin->main;
binp->stacksize = builtin->stacksize;
binp->priority = builtin->priority;
close(fd);
return OK;
}