# | Line 106 | Line 106 | static int is_valid_fs_type(const char *type) { | |
---|---|---|
106 | const char *types[] = VALID_FS_TYPES; | |
107 | int i; | |
108 | ||
109 | < | for (i = 0; i < (sizeof types / sizeof *types); i++) { |
109 | > | for (i = 0; i < (int) (sizeof types / sizeof *types); i++) { |
110 | if (strcmp(types[i], type) == 0) { | |
111 | return 1; | |
112 | } | |
# | Line 413 | Line 413 | sg_disk_io_stats *sg_get_disk_io_stats(int *entries){ | |
413 | ||
414 | num_diskio++; | |
415 | ||
416 | + | /* FIXME This should use a static cache, like the Linux |
417 | + | * code below. */ |
418 | if (diskio_stats_ptr->disk_name == NULL) { | |
419 | dh = opendir("/dev/dsk"); | |
420 | if (dh == NULL) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |