summaryrefslogtreecommitdiffstats
path: root/usr.bin/tip
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-05-06 13:25:09 +0000
committerstefanf <stefanf@FreeBSD.org>2004-05-06 13:25:09 +0000
commitfd84d10fad427ad67b814ece01bf24bdc18ed2e7 (patch)
treed98a1e4249c54c407e7cae4f423b13ae13666b41 /usr.bin/tip
parent1769ff7c1f07f4e9175195e010dd44c3d0ea098a (diff)
downloadFreeBSD-src-fd84d10fad427ad67b814ece01bf24bdc18ed2e7.zip
FreeBSD-src-fd84d10fad427ad67b814ece01bf24bdc18ed2e7.tar.gz
Use a proper protoype to declare interp() and move it to tip.h. Fix an
invocation with a wrong number of arguments. Approved by: das (mentor)
Diffstat (limited to 'usr.bin/tip')
-rw-r--r--usr.bin/tip/tip/tip.h1
-rw-r--r--usr.bin/tip/tip/value.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tip/tip/tip.h b/usr.bin/tip/tip/tip.h
index a274a64..f240f15 100644
--- a/usr.bin/tip/tip/tip.h
+++ b/usr.bin/tip/tip/tip.h
@@ -291,6 +291,7 @@ void cumain(int argc, char *argv[]);
void daemon_uid(void);
void disconnect(char *reason);
void execute(char *s);
+char *interp(char *s);
void logent(char *group, const char *num, const char *acu, const char *message);
void loginit(void);
void prtime(char *s, time_t a);
diff --git a/usr.bin/tip/tip/value.c b/usr.bin/tip/tip/value.c
index 66c20a0..4554c5a 100644
--- a/usr.bin/tip/tip/value.c
+++ b/usr.bin/tip/tip/value.c
@@ -218,7 +218,6 @@ vprint(p)
value_t *p;
{
char *cp;
- extern char *interp();
if (col > 0 && col < MIDDLE)
while (col++ < MIDDLE)
@@ -238,7 +237,7 @@ vprint(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);
}
OpenPOWER on IntegriCloud