diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-11-27 19:58:34 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-11-27 19:58:34 +0000 |
commit | a115b3b8f4c2c624b53a6c3234bdb66e7e3fbb39 (patch) | |
tree | df45308f3ca1f430bcb88ec93ae9c401ce234064 | |
parent | 9cc69dd4fa1552d33db545fb1afdd5c06042dd3c (diff) | |
download | dropbear-a115b3b8f4c2c624b53a6c3234bdb66e7e3fbb39.tar.gz |
- Fixed a couple of compile warnings
- First public monotone import
-rw-r--r-- | cli-session.c | 2 | ||||
-rw-r--r-- | 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; @@ -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; } |