diff options
| author | Meco <[email protected]> | 2020-08-05 09:28:10 +0800 |
|---|---|---|
| committer | Meco <[email protected]> | 2020-08-05 09:28:10 +0800 |
| commit | 576475f14f66e3bc73fcef434ca51bb37420d49d (patch) | |
| tree | 495fe6388e74bbe3f8879c0dd33deb2a5e7d31a6 /components/libc | |
| parent | 3e46db932a97eda44b0a8189d3525f7d8debf21a (diff) | |
change format
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/compilers/armlibc/stubs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c index 8acde16495..b4cc13799e 100644 --- a/components/libc/compilers/armlibc/stubs.c +++ b/components/libc/compilers/armlibc/stubs.c @@ -269,16 +269,14 @@ long _sys_flen(FILEHANDLE fh) { #ifdef RT_USING_DFS struct stat stat; -#endif - + if (fh < STDERR) return -1; -#ifndef RT_USING_DFS - return -1; -#else fstat(fh, &stat); return stat.st_size; +#else + return -1; #endif } |
