# | Line 35 | Line 35 | typedef struct system_disks_t{ | |
---|---|---|
35 | char *get_disk_stats(){ | |
36 | system_disks_t *sd=NULL; | |
37 | system_disks_t *sd_ptr=sd; | |
38 | – | FILE *f; |
38 | int counter=0; | |
39 | #ifdef SOLARIS | |
40 | struct mnttab mp; | |
41 | struct statvfs df; | |
42 | + | FILE *f; |
43 | #endif | |
44 | #ifdef LINUX | |
45 | struct mntent *mp; | |
46 | struct statfs df; | |
47 | + | FILE *f; |
48 | #endif | |
49 | #ifdef FREEBSD | |
50 | int nummnt; | |
# | Line 122 | Line 123 | char *get_disk_stats(){ | |
123 | sd_ptr->disk->f_inodes=mp->f_ffree; | |
124 | sd_ptr->next_disk=sd; | |
125 | sd=sd_ptr; | |
126 | + | mp++; |
127 | } | |
128 | #endif | |
129 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |