From 9e1aedd648eb47b5ffa63612ad5e21b4de30b1e0 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 27 Jun 2012 07:17:20 +0000 Subject: fptreef() always returns 0 and we never use the return value anyway, so make it void; from Michael W. Bombardieri. --- bin/ksh/tree.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bin/ksh/tree.c') diff --git a/bin/ksh/tree.c b/bin/ksh/tree.c index b46434e7c86..127c1e3678b 100644 --- a/bin/ksh/tree.c +++ b/bin/ksh/tree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tree.c,v 1.19 2008/08/11 21:50:35 jaredy Exp $ */ +/* $OpenBSD: tree.c,v 1.20 2012/06/27 07:17:19 otto Exp $ */ /* * command tree climbing @@ -353,16 +353,14 @@ tputS(char *wp, struct shf *shf) * variable args with an ANSI compiler */ /* VARARGS */ -int +void fptreef(struct shf *shf, int indent, const char *fmt, ...) { va_list va; va_start(va, fmt); - vfptreef(shf, indent, fmt, va); va_end(va); - return 0; } /* VARARGS */ -- cgit v1.2.3