change format

This commit is contained in:
Meco 2020-08-05 09:28:10 +08:00
parent 3e46db932a
commit 576475f14f
1 changed files with 3 additions and 5 deletions

View File

@ -269,16 +269,14 @@ long _sys_flen(FILEHANDLE fh)
{ {
#ifdef RT_USING_DFS #ifdef RT_USING_DFS
struct stat stat; struct stat stat;
#endif
if (fh < STDERR) if (fh < STDERR)
return -1; return -1;
#ifndef RT_USING_DFS
return -1;
#else
fstat(fh, &stat); fstat(fh, &stat);
return stat.st_size; return stat.st_size;
#else
return -1;
#endif #endif
} }