summaryrefslogtreecommitdiff
path: root/components/num_files.c
diff options
context:
space:
mode:
authorAaron Marcher <me@drkhsh.at>2018-07-06 08:08:48 +0200
committerAaron Marcher <me@drkhsh.at>2018-07-06 08:08:48 +0200
commit51ff7ce2b99147a1a77ed243093865fc884e571a (patch)
tree5d5bb891f9143825b0f081cde6d2c27a9e49d80e /components/num_files.c
parentefa26f4f3548bce8086abcd8de7ca135169e6f37 (diff)
Consistent paramter naming for components
Diffstat (limited to 'components/num_files.c')
-rw-r--r--components/num_files.c6
1 files changed, 3 insertions, 3 deletions
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;
}