mirror of
https://github.com/apache/nuttx.git
synced 2025-12-08 02:23:09 +08:00
Replace callse to ioctl() in the OS to file_ioctl()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user