projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5393341
)
ccanlint: fix compiler warning about return value of symlink.
author
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 30 Aug 2010 13:09:51 +0000
(22:39 +0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 30 Aug 2010 13:09:51 +0000
(22:39 +0930)
tools/ccanlint/ccanlint.c
patch
|
blob
|
history
diff --git
a/tools/ccanlint/ccanlint.c
b/tools/ccanlint/ccanlint.c
index 77917057f521300c4833a99fbbf35b3abfecf3e8..179f270344cd00a4a8109e18384bb6d555bf5d21 100644
(file)
--- a/
tools/ccanlint/ccanlint.c
+++ b/
tools/ccanlint/ccanlint.c
@@
-400,8
+400,9
@@
int main(int argc, char *argv[])
m = get_manifest(talloc_autofree_context(), dir);
/* Create a symlink from temp dir back to src dir's test directory. */
- symlink(talloc_asprintf(m, "%s/test", dir),
- talloc_asprintf(m, "%s/test", temp_dir(NULL)));
+ if (symlink(talloc_asprintf(m, "%s/test", dir),
+ talloc_asprintf(m, "%s/test", temp_dir(NULL))) != 0)
+ err(1, "Creating test symlink in %s", temp_dir(NULL));
/* If you don't pass the compulsory tests, you don't even get a score */
if (verbose)