Commit 0b813776 authored by Rusty Russell's avatar Rusty Russell

ccanlint: fix compiler warning about return value of symlink.

parent 5393341c
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment