From 6ee76eeac6d7c2bd3e6188654892728c5ba0e31c Mon Sep 17 00:00:00 2001 From: dtucker Date: Mon, 4 May 2009 02:52:47 +0000 Subject: [PATCH] - (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. --- ChangeLog | 5 +++++ sshlogin.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.45.1