--- projects/cms/source/ihost/libstatgrab/disk_stat.c 2002/05/13 11:33:07 1.2 +++ projects/cms/source/ihost/libstatgrab/disk_stat.c 2002/05/13 11:37:41 1.3 @@ -35,15 +35,16 @@ typedef struct system_disks_t{ char *get_disk_stats(){ system_disks_t *sd=NULL; system_disks_t *sd_ptr=sd; - FILE *f; int counter=0; #ifdef SOLARIS struct mnttab mp; struct statvfs df; + FILE *f; #endif #ifdef LINUX struct mntent *mp; struct statfs df; + FILE *f; #endif #ifdef FREEBSD int nummnt; @@ -122,6 +123,7 @@ char *get_disk_stats(){ sd_ptr->disk->f_inodes=mp->f_ffree; sd_ptr->next_disk=sd; sd=sd_ptr; + mp++; } #endif