summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-01-14 16:22:33 -0500
committerJakob Kaivo <jkk@ung.org>2020-01-14 16:22:33 -0500
commita649902a5fa065b5f4dfd32f8852428c0827d026 (patch)
tree08ed2c6fa33feaad8275bebd0d63107d2349e365
parentbb910c050b3f3379b5b600c6259508fdba93352a (diff)
rename addfile() to add_source() to avoid debugging confusion
-rw-r--r--sources.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources.c b/sources.c
index 171de68..22d71a2 100644
--- a/sources.c
+++ b/sources.c
@@ -8,7 +8,7 @@
static struct majefile *filelist = NULL;
static struct majefile *tail = NULL;
-static int addfile(const char *path, const struct stat *st, int flags, struct FTW *ft)
+static int add_source(const char *path, const struct stat *st, int flags, struct FTW *ft)
{
(void)flags; (void)ft;
@@ -40,6 +40,6 @@ static int addfile(const char *path, const struct stat *st, int flags, struct FT
struct majefile * find_source_files(const char *dir)
{
- nftw(dir, addfile, -1, 0);
+ nftw(dir, add_source, -1, 0);
return filelist;
}