diff options
author | deraadt@openbsd.org <deraadt@openbsd.org> | 2015-01-20 23:14:00 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-26 23:58:53 +1100 |
commit | 087266ec33c76fc8d54ac5a19efacf2f4a4ca076 (patch) | |
tree | 71f57bb41b61561ebaa13026d8dc5d04d9829b00 /sshlogin.c | |
parent | 57e783c8ba2c0797f93977e83b2a8644a03065d8 (diff) |
upstream commit
Reduce use of <sys/param.h> and transition to <limits.h>
throughout. ok djm markus
Diffstat (limited to 'sshlogin.c')
-rw-r--r-- | sshlogin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sshlogin.c b/sshlogin.c index 3313ac998..818312ff1 100644 --- a/sshlogin.c +++ b/sshlogin.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshlogin.c,v 1.30 2015/01/16 06:40:12 deraadt Exp $ */ | 1 | /* $OpenBSD: sshlogin.c,v 1.31 2015/01/20 23:14:00 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -42,7 +42,6 @@ | |||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | 43 | ||
44 | #include <sys/types.h> | 44 | #include <sys/types.h> |
45 | #include <sys/param.h> /* MAXHOSTNAMELEN */ | ||
46 | #include <sys/socket.h> | 45 | #include <sys/socket.h> |
47 | 46 | ||
48 | #include <netinet/in.h> | 47 | #include <netinet/in.h> |
@@ -54,6 +53,7 @@ | |||
54 | #include <string.h> | 53 | #include <string.h> |
55 | #include <time.h> | 54 | #include <time.h> |
56 | #include <unistd.h> | 55 | #include <unistd.h> |
56 | #include <limits.h> | ||
57 | 57 | ||
58 | #include "loginrec.h" | 58 | #include "loginrec.h" |
59 | #include "log.h" | 59 | #include "log.h" |
@@ -88,7 +88,7 @@ static void | |||
88 | store_lastlog_message(const char *user, uid_t uid) | 88 | store_lastlog_message(const char *user, uid_t uid) |
89 | { | 89 | { |
90 | #ifndef NO_SSH_LASTLOG | 90 | #ifndef NO_SSH_LASTLOG |
91 | char *time_string, hostname[MAXHOSTNAMELEN] = "", buf[512]; | 91 | char *time_string, hostname[HOST_NAME_MAX+1] = "", buf[512]; |
92 | time_t last_login_time; | 92 | time_t last_login_time; |
93 | 93 | ||
94 | if (!options.print_lastlog) | 94 | if (!options.print_lastlog) |