From 3e53f28f6ea9a35291b7917eca3657059f1b8d0b Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sat, 27 Nov 2004 19:58:34 +0000 Subject: [PATCH] - Fixed a couple of compile warnings - First public monotone import --HG-- extra : convert_revision : 79e029a8b3adf823f0b6f7d6b1b5c4b9ab868eaa --- cli-session.c | 2 +- loginrec.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli-session.c b/cli-session.c index 671735c..0ea33af 100644 --- a/cli-session.c +++ b/cli-session.c @@ -123,7 +123,7 @@ static void cli_session_init() { /* Auth */ cli_ses.lastpubkey = NULL; - cli_ses.lastauthtype = NULL; + cli_ses.lastauthtype = 0; /* For printing "remote host closed" for the user */ ses.remoteclosed = cli_remoteclosed; diff --git a/loginrec.c b/loginrec.c index 7a9c480..727a290 100644 --- a/loginrec.c +++ b/loginrec.c @@ -1401,8 +1401,8 @@ lastlog_filetype(char *filename) { struct stat st; - if (stat(LASTLOG_FILE, &st) != 0) { - dropbear_log(LOG_WARNING, "lastlog_perform_login: Couldn't stat %s: %s", LASTLOG_FILE, + if (stat(filename, &st) != 0) { + dropbear_log(LOG_WARNING, "lastlog_perform_login: Couldn't stat %s: %s", filename, strerror(errno)); return 0; }