From a718f058bcda11840a050764487ac0849cd03446 Mon Sep 17 00:00:00 2001 From: Moritz Jodeit Date: Thu, 16 Mar 2006 21:13:13 +0000 Subject: Fix bug that was uncovered by adding correct prototypes and remove lots of names from func declarations. ok dhill@ --- usr.bin/tip/value.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'usr.bin/tip/value.c') diff --git a/usr.bin/tip/value.c b/usr.bin/tip/value.c index 9829200ccb2..b3c7fc4ddc0 100644 --- a/usr.bin/tip/value.c +++ b/usr.bin/tip/value.c @@ -1,4 +1,4 @@ -/* $OpenBSD: value.c,v 1.11 2006/03/16 19:32:46 deraadt Exp $ */ +/* $OpenBSD: value.c,v 1.12 2006/03/16 21:13:12 moritz Exp $ */ /* $NetBSD: value.c,v 1.6 1997/02/11 09:24:09 mrg Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)value.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: value.c,v 1.11 2006/03/16 19:32:46 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: value.c,v 1.12 2006/03/16 21:13:12 moritz Exp $"; #endif /* not lint */ #include "tip.h" @@ -199,7 +199,6 @@ vtoken(char *s) static void vprint(value_t *p) { - extern char *interp(); char *cp; if (col > 0 && col < MIDDLE) @@ -220,7 +219,7 @@ vprint(value_t *p) printf("%s=", p->v_name); col++; if (p->v_value) { - cp = interp(p->v_value, NULL); + cp = interp(p->v_value); col += size(cp); printf("%s", cp); } -- cgit v1.2.3