diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2017-12-26 23:33:32 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2017-12-26 23:33:32 +0530 |
commit | 9bfc2fdc29ad69f398e5d1acfc7814de2c67ca0f (patch) | |
tree | 67089c616918111c9930f75905b338fed8590ed7 /nnn.c | |
parent | dca0f5378cc56d519a9a517306bb038265bc9430 (diff) | |
download | nnn-9bfc2fdc29ad69f398e5d1acfc7814de2c67ca0f.tar.gz |
Use ffs() instead of ffsl()
Diffstat (limited to 'nnn.c')
-rw-r--r-- | nnn.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |