X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/98c044d0a6ee1e247265c23cee5be1f7b0714780..9794d0089c075188de1c7a752a61e7efc9e227bc:/loginrec.c diff --git a/loginrec.c b/loginrec.c index ab4df74c..76ddc200 100644 --- a/loginrec.c +++ b/loginrec.c @@ -147,6 +147,12 @@ #include "includes.h" +#include +#include +#include + +#include + #include "ssh.h" #include "xmalloc.h" #include "loginrec.h" @@ -165,8 +171,6 @@ # include #endif -RCSID("$Id$"); - /** ** prototypes for helper functions in this file **/ @@ -1589,7 +1593,7 @@ lastlog_get_entry(struct logininfo *li) return (0); default: error("%s: Error reading from %s: Expecting %d, got %d", - __func__, LASTLOG_FILE, sizeof(last), ret); + __func__, LASTLOG_FILE, (int)sizeof(last), ret); return (0); } @@ -1613,7 +1617,7 @@ record_failed_login(const char *username, const char *hostname, int fd; struct utmp ut; struct sockaddr_storage from; - size_t fromlen = sizeof(from); + socklen_t fromlen = sizeof(from); struct sockaddr_in *a4; struct sockaddr_in6 *a6; time_t t;