[1301] in Kerberos-V5-bugs
krb5b4pl3: appl/telnet/telnetd/sys_term.c: don't declare time() inconsistently
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Sun Mar 26 22:46:06 1995
From: "Jonathan I. Kamens" <jik@cam.ov.com>
Date: Sun, 26 Mar 1995 22:49:28 -0500
To: krb5-bugs@MIT.EDU
appl/telnet/telnetd/sys_term.c uses a declaration of time() that is
within a local scope, and then uses the function again later, thus
causing a different implicit declaration. Moving the declaration into
global scope at the top of the file fixes this problem:
--- sys_term.c 1995/03/20 19:39:47 1.2
+++ sys_term.c 1995/03/27 03:47:21
@@ -186,6 +186,8 @@
# endif
#endif /* USE_TERMIO */
+long time();
+
#ifndef SETPGRP_TWOARG
#define setpgrp(a,b) setpgrp()
#endif
@@ -1352,7 +1354,6 @@
char *autoname;
{
register int i;
- long time();
#ifdef NEWINIT
extern char *ptyip;
struct init_request request;