diff options
author | dtucker <dtucker> | 2009-05-04 02:52:47 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2009-05-04 02:52:47 +0000 |
commit | 002d02d98236ca72d043c7dbfc7bff6cbb4eb6e7 (patch) | |
tree | d1d8fc914ca74a3234511be13e1cb6d1c21edc47 | |
parent | a452eefac696dc5b325baa753adf9febe6ca0d6f (diff) | |
download | openssh-002d02d98236ca72d043c7dbfc7bff6cbb4eb6e7.tar.gz |
- (dtucker) [sshlogin.c] Move the NO_SSH_LASTLOG #ifndef line to include
variable declarations. Should prevent unused warnings anywhere it's set
(only Crays as far as I can tell) and be a no-op everywhere else.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sshlogin.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +20090504 + - (dtucker) [sshlogin.c] Move the NO_SSH_LASTLOG #ifndef line to include + variable declarations. Should prevent unused warnings anywhere it's set + (only Crays as far as I can tell) and be a no-op everywhere else. + 20090318 - (tim) [configure.ac] Remove setting IP_TOS_IS_BROKEN for Cygwin. The problem that setsockopt(IP_TOS) doesn't work on Cygwin has been fixed since 2005. @@ -86,10 +86,10 @@ get_last_login_time(uid_t uid, const char *logname, static void store_lastlog_message(const char *user, uid_t uid) { +#ifndef NO_SSH_LASTLOG char *time_string, hostname[MAXHOSTNAMELEN] = "", buf[512]; time_t last_login_time; -#ifndef NO_SSH_LASTLOG if (!options.print_lastlog) return; |