Explorar o código

change format

Meco %!s(int64=4) %!d(string=hai) anos
pai
achega
576475f14f
Modificáronse 1 ficheiros con 3 adicións e 5 borrados
  1. 3 5
      components/libc/compilers/armlibc/stubs.c

+ 3 - 5
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
 }