aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2015-06-13 13:20:34 +0200
committerTharre <tharre3@gmail.com>2015-06-13 13:20:34 +0200
commit651653dddbc28d58dc1dac9978c126907b5ca0c0 (patch)
tree00aa878cff108b34ac55b1f72c8f5fd99c81a83e /src
parent9d9429df54b098ada384fabbbf1453dea6c18d01 (diff)
downloadredo-651653dddbc28d58dc1dac9978c126907b5ca0c0.tar.gz
redo-651653dddbc28d58dc1dac9978c126907b5ca0c0.tar.xz
redo-651653dddbc28d58dc1dac9978c126907b5ca0c0.zip
Don't export build_target()
build_target() should not be called from outside, update_target() should be used instead.
Diffstat (limited to 'src')
-rw-r--r--src/build.c3
-rw-r--r--src/build.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/build.c b/src/build.c
index 19ffa0d..5645bf3 100644
--- a/src/build.c
+++ b/src/build.c
@@ -55,8 +55,7 @@ static void hash_file(const char *target, unsigned char *hash);
/* Build given target, using it's .do script. */
-int build_target(const char *target) {
- dep_info dep;
+static int build_target(const char *dep) {
int retval = 1;
dep.path = get_dep_path(target);
diff --git a/src/build.h b/src/build.h
index 4961faa..9735080 100644
--- a/src/build.h
+++ b/src/build.h
@@ -13,6 +13,5 @@
extern void add_dep(const char *target, const char *parent, int ident);
extern int update_target(const char *target, int ident);
-extern int build_target(const char *target);
#endif