changeset 136:fb7147e2fb04

- Fixed a couple of compile warnings - First public monotone import
author Matt Johnston <matt@ucc.asn.au>
date Sat, 27 Nov 2004 19:58:34 +0000
parents d663445c1533
children a3b58707122b
files cli-session.c loginrec.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/cli-session.c	Wed Nov 03 13:47:44 2004 +0000
+++ b/cli-session.c	Sat Nov 27 19:58:34 2004 +0000
@@ -123,7 +123,7 @@
 
 	/* 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;
--- a/loginrec.c	Wed Nov 03 13:47:44 2004 +0000
+++ b/loginrec.c	Sat Nov 27 19:58:34 2004 +0000
@@ -1401,8 +1401,8 @@
 {
 	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;
 	}