ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/ihost/libstatgrab/disk_stat.c
(Generate patch)

Comparing projects/cms/source/ihost/libstatgrab/disk_stat.c (file contents):
Revision 1.5 by pajs, Mon May 13 13:21:36 2002 UTC vs.
Revision 1.6 by pajs, Thu May 16 17:02:43 2002 UTC

# Line 91 | Line 91 | char *get_disk_stats(){
91  
92          }
93  
94 +        if((fclose(f))!=0){
95 +                errf("Failed to close mnttab");
96 +                return NULL;
97 +        }
98 +
99   #endif
100   #ifdef linux
101          if ((f=fopen("/etc/mtab", "r" ))==NULL){
# Line 179 | Line 184 | char *get_disk_stats(){
184                  sd_ptr=sd_ptr->next_disk;
185                  counter++;
186          }
187 <
187 >        xml_disk_stats_ptr=xml_disk_stats;
188          xml_disk_stats=strf("%s</disk>",xml_disk_stats);
189 +        free(xml_disk_stats_ptr);      
190  
191          /* Cleaning up */
192          sd_ptr=sd;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines