aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-12-26 23:33:32 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-12-26 23:33:32 +0530
commit9bfc2fdc29ad69f398e5d1acfc7814de2c67ca0f (patch)
tree67089c616918111c9930f75905b338fed8590ed7 /nnn.c
parentdca0f5378cc56d519a9a517306bb038265bc9430 (diff)
downloadnnn-9bfc2fdc29ad69f398e5d1acfc7814de2c67ca0f.tar.gz
Use ffs() instead of ffsl()
Diffstat (limited to 'nnn.c')
-rw-r--r--nnn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nnn.c b/nnn.c
index 94ecb72..42c402e 100644
--- a/nnn.c
+++ b/nnn.c
@@ -1619,7 +1619,7 @@ get_fs_free(const char *path)
if (statvfs(path, &svb) == -1)
return 0;
else
- return svb.f_bavail << (ffsl(svb.f_frsize) - 1);
+ return svb.f_bavail << (ffs(svb.f_frsize) - 1);
}
static size_t
@@ -1630,7 +1630,7 @@ get_fs_capacity(const char *path)
if (statvfs(path, &svb) == -1)
return 0;
else
- return svb.f_blocks << (ffsl(svb.f_bsize) - 1);
+ return svb.f_blocks << (ffs(svb.f_bsize) - 1);
}
static int