diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-03-16 14:52:21 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-03-16 14:52:47 +1030 |
commit | 4fc9ee3670ea2ada55984e996e8563f9dc2ed199 (patch) | |
tree | 81c12d46610bd4211a3c953ad406286113b174fe /tools/ccanlint/file_analysis.c | |
parent | 1fe93863f1af6085ff7c3b1e0b1774744ee1e2e6 (diff) |
tools: actually add non-source files to other_files in manifest
We don't use it for the moment, but Brad Hards noted that assigning to
dest ten continuing was pointless, revealing this bug.
Diffstat (limited to 'tools/ccanlint/file_analysis.c')
-rw-r--r-- | tools/ccanlint/file_analysis.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/ccanlint/file_analysis.c b/tools/ccanlint/file_analysis.c index e8c8ebc6..92c23798 100644 --- a/tools/ccanlint/file_analysis.c +++ b/tools/ccanlint/file_analysis.c @@ -135,10 +135,7 @@ static void add_files(struct manifest *m, const char *dir) is_c_src = strends(f->name, ".c"); if (!is_c_src && !strends(f->name, ".h")) { dest = &m->other_files; - continue; - } - - if (!strchr(f->name, '/')) { + } else if (!strchr(f->name, '/')) { if (is_c_src) dest = &m->c_files; else |