diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | loginrec.c | 6 |
2 files changed, 6 insertions, 4 deletions
@@ -22,6 +22,8 @@ | |||
22 | [hostfile.c] | 22 | [hostfile.c] |
23 | Correct format/arguments to debug call; spotted by shaw at vranix.com | 23 | Correct format/arguments to debug call; spotted by shaw at vranix.com |
24 | ok djm@ | 24 | ok djm@ |
25 | - (dtucker) [loginrec.c] Add casts to prevent compiler warnings, patch | ||
26 | from shaw at vranix.com. | ||
25 | 27 | ||
26 | 20051120 | 28 | 20051120 |
27 | - (dtucker) [openbsd-compat/openssl-compat.h] Add comment explaining what | 29 | - (dtucker) [openbsd-compat/openssl-compat.h] Add comment explaining what |
@@ -3331,4 +3333,4 @@ | |||
3331 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 3333 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
3332 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 3334 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
3333 | 3335 | ||
3334 | $Id: ChangeLog,v 1.4001 2005/11/22 08:43:26 dtucker Exp $ | 3336 | $Id: ChangeLog,v 1.4002 2005/11/22 08:55:13 dtucker Exp $ |
diff --git a/loginrec.c b/loginrec.c index c3783c991..d096346ec 100644 --- a/loginrec.c +++ b/loginrec.c | |||
@@ -165,7 +165,7 @@ | |||
165 | # include <libutil.h> | 165 | # include <libutil.h> |
166 | #endif | 166 | #endif |
167 | 167 | ||
168 | RCSID("$Id: loginrec.c,v 1.70 2005/07/17 07:26:44 djm Exp $"); | 168 | RCSID("$Id: loginrec.c,v 1.71 2005/11/22 08:55:13 dtucker Exp $"); |
169 | 169 | ||
170 | /** | 170 | /** |
171 | ** prototypes for helper functions in this file | 171 | ** prototypes for helper functions in this file |
@@ -1589,7 +1589,7 @@ lastlog_get_entry(struct logininfo *li) | |||
1589 | return (0); | 1589 | return (0); |
1590 | default: | 1590 | default: |
1591 | error("%s: Error reading from %s: Expecting %d, got %d", | 1591 | error("%s: Error reading from %s: Expecting %d, got %d", |
1592 | __func__, LASTLOG_FILE, sizeof(last), ret); | 1592 | __func__, LASTLOG_FILE, (int)sizeof(last), ret); |
1593 | return (0); | 1593 | return (0); |
1594 | } | 1594 | } |
1595 | 1595 | ||
@@ -1613,7 +1613,7 @@ record_failed_login(const char *username, const char *hostname, | |||
1613 | int fd; | 1613 | int fd; |
1614 | struct utmp ut; | 1614 | struct utmp ut; |
1615 | struct sockaddr_storage from; | 1615 | struct sockaddr_storage from; |
1616 | size_t fromlen = sizeof(from); | 1616 | socklen_t fromlen = sizeof(from); |
1617 | struct sockaddr_in *a4; | 1617 | struct sockaddr_in *a4; |
1618 | struct sockaddr_in6 *a6; | 1618 | struct sockaddr_in6 *a6; |
1619 | time_t t; | 1619 | time_t t; |