diff options
author | Christian Kohlstedde <christian@kohlsted.de> | 2015-02-18 22:11:57 +0100 |
---|---|---|
committer | Christian Kohlstedde <christian@kohlsted.de> | 2015-02-18 22:11:57 +0100 |
commit | f7b25a15dd913dc7a40e3db957d216792c2fb694 (patch) | |
tree | 23b1af3dafa1214425886072ba6a07160ef700b5 /src/print_disk_info.c | |
parent | 014e66563f2c988b07f1d168d7d673ff95c0c8a7 (diff) |
Excluding the code on BSD systems.
Diffstat (limited to 'src/print_disk_info.c')
-rw-r--r-- | src/print_disk_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |