Skip to content

Commit 576475f

Browse files
committed
change format
1 parent 3e46db9 commit 576475f

File tree

1 file changed

+3
-5
lines changed
  • components/libc/compilers/armlibc

1 file changed

+3
-5
lines changed

components/libc/compilers/armlibc/stubs.c

+3-5
Original file line numberDiff line numberDiff line change
@@ -269,16 +269,14 @@ long _sys_flen(FILEHANDLE fh)
269269
{
270270
#ifdef RT_USING_DFS
271271
struct stat stat;
272-
#endif
273-
272+
274273
if (fh < STDERR)
275274
return -1;
276275

277-
#ifndef RT_USING_DFS
278-
return -1;
279-
#else
280276
fstat(fh, &stat);
281277
return stat.st_size;
278+
#else
279+
return -1;
282280
#endif
283281
}
284282

0 commit comments

Comments
 (0)