]> andersk Git - openssh.git/commitdiff
- (dtucker) [sshlogin.c] Move the NO_SSH_LASTLOG #ifndef line to include
authordtucker <dtucker>
Mon, 4 May 2009 02:52:47 +0000 (02:52 +0000)
committerdtucker <dtucker>
Mon, 4 May 2009 02:52:47 +0000 (02:52 +0000)
   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.

ChangeLog
sshlogin.c

index 955fcef2e99a63be253c1ae18a08295c13c4b726..79dc377019e119a27ba5fd76f48112e08ab5df24 100644 (file)
--- 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.
index cc35d6024b41a26573055a71091a41c3f27c46b9..dff47b6f7ce7e0485aec5ee96c9af8cb02093e92 100644 (file)
@@ -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;
 
This page took 0.202851 seconds and 5 git commands to generate.