Eliminate a warning
This commit is contained in:
parent
f03e435e43
commit
968de101f0
@ -171,7 +171,7 @@ static int binfs_open(FAR struct file *filep, FAR const char *relpath,
|
||||
|
||||
/* Save the index as the open-specific state in filep->f_priv */
|
||||
|
||||
filep->f_priv = (FAR void *)index;
|
||||
filep->f_priv = (FAR void *)((uintptr_t)index);
|
||||
return OK;
|
||||
}
|
||||
|
||||
@ -223,7 +223,7 @@ static int binfs_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
}
|
||||
else
|
||||
{
|
||||
*ptr = builtin_getname((int)filep->f_priv);
|
||||
*ptr = builtin_getname((int)((uintptr_t)filep->f_priv));
|
||||
ret = OK;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user