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:
stefanf 2004-05-06 13:25:09 +00:00
parent 1769ff7c1f
commit fd84d10fad
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);
}