diff options
author | jb <jb@FreeBSD.org> | 1998-05-14 10:07:29 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-05-14 10:07:29 +0000 |
commit | c7a5604130eade6e287042a3183d9c4833978cdd (patch) | |
tree | e04ca2a7fa40fc58af6fe8f1a5339f5dc02df52c /libexec | |
parent | dedd1364d09baf80a55f169dab4e7b541815b091 (diff) | |
download | FreeBSD-src-c7a5604130eade6e287042a3183d9c4833978cdd.zip FreeBSD-src-c7a5604130eade6e287042a3183d9c4833978cdd.tar.gz |
Remove a bogus prototype for time() and let time.h do that.
Change pointer casts from int to long. The code that looks to index -1
of argv is still broken on alpha.
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/telnetd/sys_term.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c index 95eb7e9..c08228e 100644 --- a/libexec/telnetd/sys_term.c +++ b/libexec/telnetd/sys_term.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)sys_term.c 8.2 (Berkeley) 12/15/93"; #endif static const char rcsid[] = - "$Id: sys_term.c,v 1.18 1997/12/03 07:16:03 charnier Exp $"; + "$Id: sys_term.c,v 1.19 1997/12/24 19:21:09 imp Exp $"; #endif /* not lint */ #include "telnetd.h" @@ -1375,7 +1375,6 @@ startslave(host, autologin, autoname) char *autoname; { register int i; - long time(); #ifdef NEWINIT extern char *ptyip; struct init_request request; @@ -1766,14 +1765,14 @@ addarg(argv, val) } for (cpp = argv; *cpp; cpp++) ; - if (cpp == &argv[(int)argv[-1]]) { + if (cpp == &argv[(long)argv[-1]]) { --argv; - *argv = (char *)((int)(*argv) + 10); - argv = (char **)realloc(argv, (int)(*argv) + 2); + *argv = (char *)((long)(*argv) + 10); + argv = (char **)realloc(argv, (long)(*argv) + 2); if (argv == NULL) return(NULL); argv++; - cpp = &argv[(int)argv[-1] - 10]; + cpp = &argv[(long)argv[-1] - 10]; } *cpp++ = val; *cpp = 0; |