Commit f1611bcc69909d7cd2f9f0a78419a544631ef1c3

Authored by David René
1 parent 4aa7739e

remove perror in read_from_file

Showing 1 changed file with 7 additions and 5 deletions   Show diff stats
anubis_dev/vm/src/vmtools.cpp
... ... @@ -1815,11 +1815,13 @@ int read_from_file(U32 conn, int n, U32 ba)
1815 1815  
1816 1816 i = fread(a+4+4,1, n, fp);
1817 1817  
1818   - if(i < n)
1819   - {
1820   - if (ferror(fp))
1821   - printf("errno %d\n",errno);
1822   - }
  1818 +// if(i < n)
  1819 +// {
  1820 +// if (feof(fp))
  1821 +// //printf("EOF reached\n");
  1822 +// else if (ferror(fp))
  1823 +// printf("errno %d\n",errno);
  1824 +// }
1823 1825  
1824 1826 return i;
1825 1827 }
... ...