diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sshlogin.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ | |||
1 | 20090504 | ||
2 | - (dtucker) [sshlogin.c] Move the NO_SSH_LASTLOG #ifndef line to include | ||
3 | variable declarations. Should prevent unused warnings anywhere it's set | ||
4 | (only Crays as far as I can tell) and be a no-op everywhere else. | ||
5 | |||
1 | 20090318 | 6 | 20090318 |
2 | - (tim) [configure.ac] Remove setting IP_TOS_IS_BROKEN for Cygwin. The problem | 7 | - (tim) [configure.ac] Remove setting IP_TOS_IS_BROKEN for Cygwin. The problem |
3 | that setsockopt(IP_TOS) doesn't work on Cygwin has been fixed since 2005. | 8 | that setsockopt(IP_TOS) doesn't work on Cygwin has been fixed since 2005. |
diff --git a/sshlogin.c b/sshlogin.c index cc35d6024..dff47b6f7 100644 --- a/sshlogin.c +++ b/sshlogin.c | |||
@@ -86,10 +86,10 @@ get_last_login_time(uid_t uid, const char *logname, | |||
86 | static void | 86 | static void |
87 | store_lastlog_message(const char *user, uid_t uid) | 87 | store_lastlog_message(const char *user, uid_t uid) |
88 | { | 88 | { |
89 | #ifndef NO_SSH_LASTLOG | ||
89 | char *time_string, hostname[MAXHOSTNAMELEN] = "", buf[512]; | 90 | char *time_string, hostname[MAXHOSTNAMELEN] = "", buf[512]; |
90 | time_t last_login_time; | 91 | time_t last_login_time; |
91 | 92 | ||
92 | #ifndef NO_SSH_LASTLOG | ||
93 | if (!options.print_lastlog) | 93 | if (!options.print_lastlog) |
94 | return; | 94 | return; |
95 | 95 | ||