Enlightenment CVS committal Author : raster Project : e17 Module : libs/eet
Dir : e17/libs/eet/src/lib Modified Files: eet_lib.c Log Message: eet return ferror right =================================================================== RCS file: /cvs/e/e17/libs/eet/src/lib/eet_lib.c,v retrieving revision 1.67 retrieving revision 1.68 diff -u -3 -r1.67 -r1.68 --- eet_lib.c 25 Jul 2006 09:47:47 -0000 1.67 +++ eet_lib.c 15 Aug 2006 06:45:51 -0000 1.68 @@ -367,21 +367,31 @@ return EET_ERROR_NONE; write_error: - fclose(ef->fp); - ef->fp = NULL; switch (ferror(ef->fp)) { case EFBIG: + fclose(ef->fp); + ef->fp = NULL; return EET_ERROR_WRITE_ERROR_FILE_TOO_BIG; case EIO: + fclose(ef->fp); + ef->fp = NULL; return EET_ERROR_WRITE_ERROR_IO_ERROR; case ENOSPC: + fclose(ef->fp); + ef->fp = NULL; return EET_ERROR_WRITE_ERROR_OUT_OF_SPACE; case EPIPE: + fclose(ef->fp); + ef->fp = NULL; return EET_ERROR_WRITE_ERROR_FILE_CLOSED; default: + fclose(ef->fp); + ef->fp = NULL; return EET_ERROR_WRITE_ERROR; } + fclose(ef->fp); + ef->fp = NULL; return EET_ERROR_WRITE_ERROR; } ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs