diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2012-06-27 07:17:20 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2012-06-27 07:17:20 +0000 |
commit | 9e1aedd648eb47b5ffa63612ad5e21b4de30b1e0 (patch) | |
tree | edba65b1bbbb11a30255ecfbccc282ea908d575d /bin | |
parent | 16e6047e84444dba2fa3cad9fdc6592e86572899 (diff) |
fptreef() always returns 0 and we never use the return value anyway,
so make it void; from Michael W. Bombardieri.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ksh/proto.h | 4 | ||||
-rw-r--r-- | bin/ksh/tree.c | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/bin/ksh/proto.h b/bin/ksh/proto.h index bbd1327c0a2..d51030b8704 100644 --- a/bin/ksh/proto.h +++ b/bin/ksh/proto.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proto.h,v 1.33 2010/05/19 17:36:08 jasper Exp $ */ +/* $OpenBSD: proto.h,v 1.34 2012/06/27 07:17:19 otto Exp $ */ /* * prototypes for PD-KSH @@ -232,7 +232,7 @@ void restore_pipe(int); int setsig(Trap *, sig_t, int); void setexecsig(Trap *, int); /* tree.c */ -int fptreef(struct shf *, int, const char *, ...); +void fptreef(struct shf *, int, const char *, ...); char * snptreef(char *, int, const char *, ...); struct op * tcopy(struct op *, Area *); char * wdcopy(const char *, Area *); 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 */ |