openssh-2.9.9p2 session.c uses two undeclared void functions
Paul Eggert
eggert at twinsun.com
Sat Sep 29 04:21:47 EST 2001
I found this problem on 32-bit Solaris 8 sparc. session.c uses two
void functions without declaring them first; this violates the C
standard, which requires declarations for such functions. Here's a
patch.
2001-09-28 Paul Eggert <eggert at twinsun.com>
* session.c (do_pre_login, record_utmp_only): Add missing
declarations.
===================================================================
RCS file: session.c,v
retrieving revision 2.9.9.2
retrieving revision 2.9.9.2.0.1
diff -pu -r2.9.9.2 -r2.9.9.2.0.1
--- session.c 2001/09/16 22:17:15 2.9.9.2
+++ session.c 2001/09/28 18:17:11 2.9.9.2.0.1
@@ -126,6 +126,9 @@ static void session_pty_cleanup(void *);
void session_proctitle(Session *);
int session_setup_x11fwd(Session *);
void do_exec_pty(Session *, const char *);
+#ifdef LOGIN_NEEDS_UTMPX
+static void do_pre_login(Session *s);
+#endif
void do_exec_no_pty(Session *, const char *);
void do_exec(Session *, const char *);
void do_login(Session *, const char *);
@@ -147,6 +150,7 @@ extern int debug_flag;
extern u_int utmp_len;
extern int startup_pipe;
extern void destroy_sensitive_data(void);
+extern void record_utmp_only(pid_t, const char *, const char *, const char *, struct sockaddr *);
/* original command from peer. */
const char *original_command = NULL;
More information about the openssh-unix-dev
mailing list