From: Rusty Russell Date: Wed, 16 Mar 2011 04:22:21 +0000 (+1030) Subject: tools: actually add non-source files to other_files in manifest X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=4fc9ee3670ea2ada55984e996e8563f9dc2ed199;ds=sidebyside 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. --- 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