summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
authordtucker <dtucker>2005-11-22 08:55:13 +0000
committerdtucker <dtucker>2005-11-22 08:55:13 +0000
commit2494258aca600368c18eb3784d91e042653ab35a (patch)
tree9631d5c94988ba853113a53af9eabcf8383b01bd /loginrec.c
parentf80bf1a2056766157cf929ee1515fe4d9afd89a3 (diff)
downloadopenssh-2494258aca600368c18eb3784d91e042653ab35a.tar.gz
- (dtucker) [loginrec.c] Add casts to prevent compiler warnings, patch
from shaw at vranix.com.
Diffstat (limited to 'loginrec.c')
-rw-r--r--loginrec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loginrec.c b/loginrec.c
index c3783c99..d096346e 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -165,7 +165,7 @@
# include <libutil.h>
#endif
-RCSID("$Id: loginrec.c,v 1.70 2005/07/17 07:26:44 djm Exp $");
+RCSID("$Id: loginrec.c,v 1.71 2005/11/22 08:55:13 dtucker Exp $");
/**
** prototypes for helper functions in this file
@@ -1589,7 +1589,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 +1613,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;