From 002d02d98236ca72d043c7dbfc7bff6cbb4eb6e7 Mon Sep 17 00:00:00 2001 From: dtucker Date: Mon, 4 May 2009 02:52:47 +0000 Subject: - (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. --- sshlogin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sshlogin.c') 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; -- cgit v1.2.1