Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/userfs/userfs_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion system/usbmsc/usbmsc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: "
Expand Down
Loading