File tree 1 file changed +3
-3
lines changed
components/libc/compilers/armlibc
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ FILEHANDLE _sys_open(const char *name, int openmode)
71
71
72
72
#ifndef DFS_USING_POSIX
73
73
LOG_W ("%s: %s" , __func__ , _WARNING_WITHOUT_FS );
74
- return 0 ; /* error */
74
+ return -1 ; /* error */
75
75
#else
76
76
/* Correct openmode from fopen to open */
77
77
if (openmode & OPEN_PLUS )
@@ -101,7 +101,7 @@ FILEHANDLE _sys_open(const char *name, int openmode)
101
101
102
102
fd = open (name , mode , 0 );
103
103
if (fd < 0 )
104
- return 0 ; /* error */
104
+ return -1 ; /* error */
105
105
else
106
106
return fd ;
107
107
#endif /* DFS_USING_POSIX */
@@ -116,7 +116,7 @@ int _sys_close(FILEHANDLE fh)
116
116
return close (fh );
117
117
#else
118
118
LOG_W ("%s: %s" , __func__ , _WARNING_WITHOUT_FS );
119
- return 0 ;
119
+ return 0 ; /* error */
120
120
#endif /* DFS_USING_POSIX */
121
121
}
122
122
You can’t perform that action at this time.
0 commit comments