Eliminate a warning

This commit is contained in:
Gregory Nutt 2015-11-21 10:12:21 -06:00
parent f03e435e43
commit 968de101f0

View File

@ -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;
}
}