X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/efa26f4f3548bce8086abcd8de7ca135169e6f37..51ff7ce2b99147a1a77ed243093865fc884e571a:/components/num_files.c diff --git a/components/num_files.c b/components/num_files.c index 86ea064..fb55df9 100644 --- a/components/num_files.c +++ b/components/num_files.c @@ -6,14 +6,14 @@ #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; }