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:
parent
1769ff7c1f
commit
fd84d10fad
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user