From f7b25a15dd913dc7a40e3db957d216792c2fb694 Mon Sep 17 00:00:00 2001 From: Christian Kohlstedde Date: Wed, 18 Feb 2015 22:11:57 +0100 Subject: Excluding the code on BSD systems. --- src/print_disk_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/print_disk_info.c b/src/print_disk_info.c index ef028bd..609f6d3 100644 --- a/src/print_disk_info.c +++ b/src/print_disk_info.c @@ -125,7 +125,6 @@ void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const ch if (statvfs(path, &buf) == -1) return; -#endif FILE *mntentfile = setmntent("/etc/mtab", "r"); struct mntent *m; @@ -144,6 +143,7 @@ void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const ch OUTPUT_FULL_TEXT(buffer); return; } +#endif if (low_threshold > 0 && below_threshold(buf, prefix_type, threshold_type, low_threshold)) { START_COLOR("color_bad"); -- cgit v1.2.3