mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
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
c8d5cfbd81
commit
a2c1b13f5c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129004
@ -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