Use ffs() instead of ffsl()

This commit is contained in:
Arun Prakash Jana 2017-12-26 23:33:32 +05:30
parent dca0f5378c
commit 9bfc2fdc29
No known key found for this signature in database
GPG key ID: A75979F35C080412

4
nnn.c
View file

@ -1619,7 +1619,7 @@ get_fs_free(const char *path)
if (statvfs(path, &svb) == -1) if (statvfs(path, &svb) == -1)
return 0; return 0;
else else
return svb.f_bavail << (ffsl(svb.f_frsize) - 1); return svb.f_bavail << (ffs(svb.f_frsize) - 1);
} }
static size_t static size_t
@ -1630,7 +1630,7 @@ get_fs_capacity(const char *path)
if (statvfs(path, &svb) == -1) if (statvfs(path, &svb) == -1)
return 0; return 0;
else else
return svb.f_blocks << (ffsl(svb.f_bsize) - 1); return svb.f_blocks << (ffs(svb.f_bsize) - 1);
} }
static int static int