diff --git a/usr.bin/make/suff.c b/usr.bin/make/suff.c index dc661b1af15..7fb30e88e1c 100644 --- a/usr.bin/make/suff.c +++ b/usr.bin/make/suff.c @@ -187,6 +187,10 @@ static void SuffFindNormalDeps(GNode *, Lst *); static int SuffPrintName(void *, void *); static int SuffPrintSuff(void *, void *); static int SuffPrintTrans(void *, void *); +#ifdef DEBUG_SRC +static int PrintAddr(void *, void *); +#endif /* DEBUG_SRC */ + /*************** Lst Predicates ****************/ /*- @@ -2337,3 +2341,16 @@ Suff_PrintAll(void) printf("#*** Transformations:\n"); Lst_ForEach(&transforms, SuffPrintTrans, (void *)NULL); } + +#ifdef DEBUG_SRC +/* + * Printaddr -- + * Print the address of a node. + */ +static int +PrintAddr(void *a, void *b __unused) +{ + printf("%p ", a); + return (0); +} +#endif /* DEBUG_SRC */ diff --git a/usr.bin/make/util.c b/usr.bin/make/util.c index a3620d6688f..ba11f4bc460 100644 --- a/usr.bin/make/util.c +++ b/usr.bin/make/util.c @@ -274,14 +274,3 @@ eunlink(const char *file) return (unlink(file)); } -/* - * Printaddr -- - * Print the address of a node, used as an interative function. - */ -int -PrintAddr(void *a, void *b __unused) -{ - - printf("%p ", a); - return (0); -} diff --git a/usr.bin/make/util.h b/usr.bin/make/util.h index 56705269498..25812be5404 100644 --- a/usr.bin/make/util.h +++ b/usr.bin/make/util.h @@ -79,7 +79,6 @@ void Error(const char *, ...); void Fatal(const char *, ...); void Punt(const char *, ...); void DieHorribly(void); -int PrintAddr(void *, void *); void Finish(int); char *estrdup(const char *); void *emalloc(size_t);