projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fe9386
)
tools: actually add non-source files to other_files in manifest
author
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 16 Mar 2011 04:22:21 +0000
(14:52 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 16 Mar 2011 04:22:47 +0000
(14:52 +1030)
We don't use it for the moment, but Brad Hards noted that assigning to
dest ten continuing was pointless, revealing this bug.
tools/ccanlint/file_analysis.c
patch
|
blob
|
history
diff --git
a/tools/ccanlint/file_analysis.c
b/tools/ccanlint/file_analysis.c
index e8c8ebc6dbb057f24849a6edd541c5c6cfda028d..92c23798292c9844058374f22115b324345ae720 100644
(file)
--- 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