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/configdata/configdata_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ int main(int argc, FAR char *argv[])

/* Open the /dev/config device */

g_fd = open("/dev/config", O_RDOK);
g_fd = open("/dev/config", O_RDONLY);
if (g_fd == -1)
{
printf("ERROR: Failed to open /dev/config %d\n", -errno);
Expand Down
2 changes: 1 addition & 1 deletion nshlib/nsh_script.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ int nsh_script(FAR struct nsh_vtbl_s *vtbl, FAR const FAR char *cmd,

/* Open the file containing the script */

vtbl->np.np_fd = open(fullpath, O_RDOK | O_CLOEXEC);
vtbl->np.np_fd = open(fullpath, O_RDONLY | O_CLOEXEC);
if (vtbl->np.np_fd < 0)
{
if (log)
Expand Down
4 changes: 2 additions & 2 deletions platform/mikroe-stm32f4/mikroe_configdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int platform_setconfig(enum config_data_e id, int instance,

/* Try to open the /dev/config device file */

if ((fd = open("/dev/config", O_RDOK)) == -1)
if ((fd = open("/dev/config", O_RDONLY)) == -1)
{
/* Error opening the config device */

Expand Down Expand Up @@ -209,7 +209,7 @@ int platform_getconfig(enum config_data_e id, int instance,

/* Try to open the /dev/config device file */

if ((fd = open("/dev/config", O_RDOK)) == -1)
if ((fd = open("/dev/config", O_RDONLY)) == -1)
{
/* Error opening the config device */

Expand Down
Loading