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)
This commit is contained in:
Stefan Farfeleder 2004-05-06 13:25:09 +00:00
parent c8d5cfbd81
commit a2c1b13f5c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129004
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);
}