Commit Diff


commit - 0c961f7d3321f7810f6e45b6581762b5ed0fd2e1
commit + 31fbca0822b34bdf96455d1bce6e86152ae7b59f
blob - d23484030f2a1d2f549768a3c62824cb2926de70
blob + 595f3ae1dbb7c2cad091fd15065ebf43a03bd271
--- lsblk.c
+++ lsblk.c
@@ -377,16 +377,11 @@ int main (int argc, char *argv[])
     if (argc != optind)
         return usage ();
 
-    struct statfs *mounts;
     char *names = disknames ();
 
     if (pledge ("stdio rpath disklabel", NULL) == -1)
         die ("pledge()");
 
-    const int n_mounts = getmntinfo (&mounts, MNT_NOWAIT);
-    if (n_mounts == 0)
-        die ("getmntinfo()");
-
     size_t cap_disks = 10;
     size_t num_disks = 0;
     struct my_diskinfo *disks = calloc (cap_disks, sizeof (struct my_diskinfo));