From 575dcfc9e15cfbd45339fe0e5cb4be6c637248d1 Mon Sep 17 00:00:00 2001 From: Tharre Date: Sun, 15 Feb 2015 01:50:48 +0100 Subject: Replace make_relative() with relpath() Also improve the documentation for this function, and add a few examples to clarify what it does (and what not). --- src/build.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/build.c') diff --git a/src/build.c b/src/build.c index c1dd602..71f10f9 100644 --- a/src/build.c +++ b/src/build.c @@ -322,9 +322,9 @@ static char *get_relpath(const char *target) { if (!abstarget) fatal("redo: failed to get realpath() of %s", target); - char *relpath = xstrdup(make_relative(root, abstarget)); + char *path = xstrdup(relpath(abstarget, root)); free(abstarget); - return relpath; + return path; } /* Return the dependency file path of target. */ -- cgit v1.2.3-70-g09d2