--- projects/cms/source/ihost/libstatgrab/disk_stat.c 2002/05/21 16:47:12 1.11 +++ projects/cms/source/ihost/libstatgrab/disk_stat.c 2002/05/29 19:41:59 1.13 @@ -18,6 +18,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include "ukcprog.h" @@ -155,10 +159,7 @@ char *get_disk_stats(){ sd=sd_ptr; } - if ((endmntent(f)) != 0) { - errf("Failed to close file (%m)"); - return NULL; - } + endmntent(f); #endif #ifdef FREEBSD