X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/53bc747d311d18642fa3ad0cc0de34f3899ed1f4..4b4a62d507adc61e20e75e2748301ef307a6c95f:/scan-tree.c diff --git a/scan-tree.c b/scan-tree.c index 98a99c9..0d3e0ad 100644 --- a/scan-tree.c +++ b/scan-tree.c @@ -8,6 +8,7 @@ */ #include "cgit.h" +#include "scan-tree.h" #include "configfile.h" #include "html.h" @@ -185,7 +186,7 @@ static void scan_path(const char *base, const char *path, repo_config_fn fn) add_repo(base, fmt("%s/.git", path), fn); goto end; } - while((ent = readdir(dir)) != NULL) { + while ((ent = readdir(dir)) != NULL) { if (ent->d_name[0] == '.') { if (ent->d_name[1] == '\0') continue;