summaryrefslogtreecommitdiff
path: root/sshlogin.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2009-05-04 12:52:47 +1000
committerDarren Tucker <dtucker@zip.com.au>2009-05-04 12:52:47 +1000
commita422d9756e3fbe932db063592b5303aae7cc0b28 (patch)
tree3d631b39f44f6a451fa336fb3a25b8abafc0e359 /sshlogin.c
parenta74000eb9e04c726bee13ae8abce51386ba0dfbf (diff)
- (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.
Diffstat (limited to 'sshlogin.c')
-rw-r--r--sshlogin.c2
1 files changed, 1 insertions, 1 deletions
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,
86static void 86static void
87store_lastlog_message(const char *user, uid_t uid) 87store_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