summaryrefslogtreecommitdiff
path: root/sshlogin.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-02-17 22:55:51 +1100
committerDarren Tucker <dtucker@dtucker.net>2020-02-17 22:55:51 +1100
commit011052de73f3dbc53f50927ccf677266a9ade4f6 (patch)
tree2490aa57f69769229ad83aee48a17a7d7aaf3c36 /sshlogin.c
parent31c9348c5e4e94e9913ec64b3ca6e15f68ba19e5 (diff)
Remove unused variable warning.
Diffstat (limited to 'sshlogin.c')
-rw-r--r--sshlogin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sshlogin.c b/sshlogin.c
index 4ed419494..08d2600b2 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -90,8 +90,11 @@ static void
90store_lastlog_message(const char *user, uid_t uid) 90store_lastlog_message(const char *user, uid_t uid)
91{ 91{
92#ifndef NO_SSH_LASTLOG 92#ifndef NO_SSH_LASTLOG
93 char *time_string, hostname[HOST_NAME_MAX+1] = ""; 93# ifndef CUSTOM_SYS_AUTH_GET_LASTLOGIN_MSG
94 char hostname[HOST_NAME_MAX+1] = "";
94 time_t last_login_time; 95 time_t last_login_time;
96# endif
97 char *time_string;
95 int r; 98 int r;
96 99
97 if (!options.print_lastlog) 100 if (!options.print_lastlog)