Enlightenment CVS committal Author : vapier Project : e16 Module : epplets
Dir : e16/epplets/epplets Modified Files: E-MemWatch.c Log Message: make sure we return value in main and we want to fclose(FILE*), not close() it =================================================================== RCS file: /cvs/e/e16/epplets/epplets/E-MemWatch.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- E-MemWatch.c 16 Mar 2004 16:39:16 -0000 1.17 +++ E-MemWatch.c 15 Apr 2006 19:54:29 -0000 1.18 @@ -251,7 +251,7 @@ if ((fp = fopen("/proc/version", "r")) == NULL) { D(("Failed to open /proc/version -- %s\nWill assume not 2.6 kernel", strerror(errno))); - return; + return 1; } fgets(buff, sizeof(buff), fp); @@ -261,7 +261,7 @@ kernel_2_6 = 1; } - close(fp); + fclose(fp); /* end check for Kernel 2.6 */ atexit(Epplet_cleanup); ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs