- (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.
This commit is contained in:
parent
a74000eb9e
commit
a422d9756e
|
@ -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
|
20090318
|
||||||
- (tim) [configure.ac] Remove setting IP_TOS_IS_BROKEN for Cygwin. The problem
|
- (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.
|
that setsockopt(IP_TOS) doesn't work on Cygwin has been fixed since 2005.
|
||||||
|
|
|
@ -86,10 +86,10 @@ get_last_login_time(uid_t uid, const char *logname,
|
||||||
static void
|
static void
|
||||||
store_lastlog_message(const char *user, uid_t uid)
|
store_lastlog_message(const char *user, uid_t uid)
|
||||||
{
|
{
|
||||||
|
#ifndef NO_SSH_LASTLOG
|
||||||
char *time_string, hostname[MAXHOSTNAMELEN] = "", buf[512];
|
char *time_string, hostname[MAXHOSTNAMELEN] = "", buf[512];
|
||||||
time_t last_login_time;
|
time_t last_login_time;
|
||||||
|
|
||||||
#ifndef NO_SSH_LASTLOG
|
|
||||||
if (!options.print_lastlog)
|
if (!options.print_lastlog)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue