]> git.sur5r.net Git - i3/i3status/commitdiff
Excluding the code on BSD systems.
authorChristian Kohlstedde <christian@kohlsted.de>
Wed, 18 Feb 2015 21:11:57 +0000 (22:11 +0100)
committerChristian Kohlstedde <christian@kohlsted.de>
Wed, 18 Feb 2015 21:11:57 +0000 (22:11 +0100)
src/print_disk_info.c

index ef028bdf3bd710c8d4ae9896fec35744be28c524..609f6d3537e7e7ff45a1bcb2d25857b09337f64c 100644 (file)
@@ -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");