summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordtucker <dtucker>2009-05-04 02:52:47 +0000
committerdtucker <dtucker>2009-05-04 02:52:47 +0000
commit002d02d98236ca72d043c7dbfc7bff6cbb4eb6e7 (patch)
treed1d8fc914ca74a3234511be13e1cb6d1c21edc47
parenta452eefac696dc5b325baa753adf9febe6ca0d6f (diff)
downloadopenssh-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--ChangeLog5
-rw-r--r--sshlogin.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 955fcef2..79dc3770 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/sshlogin.c b/sshlogin.c
index cc35d602..dff47b6f 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -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;