]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Remove unused variable warning.
authorDarren Tucker <dtucker@dtucker.net>
Mon, 17 Feb 2020 11:55:51 +0000 (22:55 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 17 Feb 2020 11:55:51 +0000 (22:55 +1100)
sshlogin.c

index 4ed419494d272f1e419cfe3f4f5bce284b229ed8..08d2600b2df220afcb648df36c4e53a71deeaa70 100644 (file)
@@ -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)