mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps: Replace O_RDOK with O_RDONLY after alias removal
The O_RDOK/O_WROK aliases have been removed from fcntl.h. Replace all remaining O_RDOK usage with O_RDONLY in the apps repository. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
4c560ef0a2
commit
d172f81ecc
2 changed files with 2 additions and 2 deletions
|
|
@ -245,7 +245,7 @@ static int ufstest_open(FAR void *volinfo, FAR const char *relpath,
|
|||
file->inuse = 0;
|
||||
}
|
||||
|
||||
if ((oflags & (O_WROK | O_APPEND)) == (O_WROK | O_APPEND))
|
||||
if ((oflags & (O_WRONLY | O_APPEND)) == (O_WRONLY | O_APPEND))
|
||||
{
|
||||
opriv->pos = file->inuse;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -581,7 +581,7 @@ int main(int argc, FAR char *argv[])
|
|||
num_luns, luns[num_luns].path);
|
||||
|
||||
ret = usbmsc_bindlun(handle, luns[num_luns].path, 0, 0, 0,
|
||||
luns[num_luns].flags & O_WROK ? false : true);
|
||||
luns[num_luns].flags & O_WRONLY ? false : true);
|
||||
if (ret < 0)
|
||||
{
|
||||
printf("mcsonn_main: usbmsc_bindlun failed for LUN %d using %s: "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue