[prev in list] [next in list] [prev in thread] [next in thread]
List: openssh-unix-dev
Subject: openssh-2.9.9p2 session.c uses two undeclared void functions
From: Paul Eggert <eggert () twinsun ! com>
Date: 2001-09-28 18:21:47
[Download RAW message or body]
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@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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic