X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/80fc20d1d69b14f36ad9bb64d8af38481cbf1ff5..d518472e6235dde0164115cd68f383f3db3427f2:/components/num_files.c?ds=inline diff --git a/components/num_files.c b/components/num_files.c index 9179037..fb55df9 100644 --- a/components/num_files.c +++ b/components/num_files.c @@ -1,20 +1,19 @@ /* See LICENSE file for copyright and license details. */ #include -#include #include #include #include "../util.h" const char * -num_files(const char *dir) +num_files(const char *path) { struct dirent *dp; DIR *fd; int num; - if (!(fd = opendir(dir))) { - warn("opendir '%s':", dir); + if (!(fd = opendir(path))) { + warn("opendir '%s':", path); return NULL; }