From: Darren Tucker Date: Mon, 17 Feb 2020 11:55:51 +0000 (+1100) Subject: Remove unused variable warning. X-Git-Tag: V_8_3_P1~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=011052de73f3dbc53f50927ccf677266a9ade4f6;p=thirdparty%2Fopenssh-portable.git Remove unused variable warning. --- diff --git a/sshlogin.c b/sshlogin.c index 4ed419494..08d2600b2 100644 --- a/sshlogin.c +++ b/sshlogin.c @@ -90,8 +90,11 @@ static void store_lastlog_message(const char *user, uid_t uid) { #ifndef NO_SSH_LASTLOG - char *time_string, hostname[HOST_NAME_MAX+1] = ""; +# ifndef CUSTOM_SYS_AUTH_GET_LASTLOGIN_MSG + char hostname[HOST_NAME_MAX+1] = ""; time_t last_login_time; +# endif + char *time_string; int r; if (!options.print_lastlog)