From: Arun Prakash Jana Date: Tue, 26 Dec 2017 18:03:32 +0000 (+0530) Subject: Use ffs() instead of ffsl() X-Git-Tag: v1.7~64 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9bfc2fdc29ad69f398e5d1acfc7814de2c67ca0f;p=nnn.git Use ffs() instead of ffsl() --- diff --git a/nnn.c b/nnn.c index 94ecb725..42c402ee 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