--- projects/cms/source/ihost/libstatgrab/disk_stat.c 2002/05/21 16:16:41 1.10 +++ projects/cms/source/ihost/libstatgrab/disk_stat.c 2002/05/22 08:54:53 1.12 @@ -1,5 +1,6 @@ /* * i-scream central monitoring system + * http://www.i-scream.org.uk * Copyright (C) 2000-2002 i-scream * * This program is free software; you can redistribute it and/or @@ -154,10 +155,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