aboutsummaryrefslogtreecommitdiff
path: root/libexec/telnetd
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-05-14 10:07:29 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-05-14 10:07:29 +0000
commitad12d72a41b723c25dcc0e8ce11bebc35328e749 (patch)
treebc53d5d728079d5498a2d119567f577f3f829a42 /libexec/telnetd
parent25e363dff1172d5198317d3bd0a058beb86ea6dd (diff)
downloadsrc-ad12d72a41b723c25dcc0e8ce11bebc35328e749.tar.gz
src-ad12d72a41b723c25dcc0e8ce11bebc35328e749.zip
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.
Notes
Notes: svn path=/head/; revision=36030
Diffstat (limited to 'libexec/telnetd')
-rw-r--r--libexec/telnetd/sys_term.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c
index 95eb7e9587c6..c08228ef78c5 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;