projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d6daa78
)
ccanlint: fix -k has_examples
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 5 Oct 2010 23:11:11 +0000
(09:41 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 5 Oct 2010 23:11:11 +0000
(09:41 +1030)
tools/ccanlint/tests/has_examples.c
patch
|
blob
|
history
diff --git
a/tools/ccanlint/tests/has_examples.c
b/tools/ccanlint/tests/has_examples.c
index 12035e62f2fe3205b014263689692c0ca0d3a6dc..6c8fff4d68bfd558b38b2ad398ee652ef185b11b 100644
(file)
--- a/
tools/ccanlint/tests/has_examples.c
+++ b/
tools/ccanlint/tests/has_examples.c
@@
-25,7
+25,9
@@
static char *add_example(struct manifest *m, struct ccan_file *source,
struct ccan_file *f;
name = maybe_temp_file(m, ".c", keep,
- talloc_asprintf(m, "example-%s-%s",
+ talloc_asprintf(m, "%s/example-%s-%s",
+ talloc_dirname(m,
+ source->fullname),
source->name,
example->function));
f = new_ccan_file(m, talloc_dirname(m, name), talloc_basename(m, name));