diff options
author | dtucker <dtucker> | 2005-11-22 08:55:13 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2005-11-22 08:55:13 +0000 |
commit | 2494258aca600368c18eb3784d91e042653ab35a (patch) | |
tree | 9631d5c94988ba853113a53af9eabcf8383b01bd /loginrec.c | |
parent | f80bf1a2056766157cf929ee1515fe4d9afd89a3 (diff) | |
download | openssh-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |