diff options
author | deraadt <> | 2015-01-16 16:48:51 +0000 |
---|---|---|
committer | deraadt <> | 2015-01-16 16:48:51 +0000 |
commit | 1e4765ffa2cc484d6fa2c51e54ba927cbae67f13 (patch) | |
tree | 2f04e8a0f019b4b73805acf11a1e5138c9b9f37f /src/lib/libc/net/rcmd.c | |
parent | d23934efb8e7adaa63d4eb5752505a40e4b1f285 (diff) | |
download | openbsd-1e4765ffa2cc484d6fa2c51e54ba927cbae67f13.tar.gz openbsd-1e4765ffa2cc484d6fa2c51e54ba927cbae67f13.tar.bz2 openbsd-1e4765ffa2cc484d6fa2c51e54ba927cbae67f13.zip |
Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther
Diffstat (limited to 'src/lib/libc/net/rcmd.c')
-rw-r--r-- | src/lib/libc/net/rcmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/rcmd.c b/src/lib/libc/net/rcmd.c index 617fe440aa..afa59dde97 100644 --- a/src/lib/libc/net/rcmd.c +++ b/src/lib/libc/net/rcmd.c | |||
@@ -28,7 +28,6 @@ | |||
28 | * SUCH DAMAGE. | 28 | * SUCH DAMAGE. |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <sys/param.h> | ||
32 | #include <sys/socket.h> | 31 | #include <sys/socket.h> |
33 | #include <sys/stat.h> | 32 | #include <sys/stat.h> |
34 | 33 | ||
@@ -39,6 +38,7 @@ | |||
39 | #include <fcntl.h> | 38 | #include <fcntl.h> |
40 | #include <netdb.h> | 39 | #include <netdb.h> |
41 | #include <unistd.h> | 40 | #include <unistd.h> |
41 | #include <limits.h> | ||
42 | #include <pwd.h> | 42 | #include <pwd.h> |
43 | #include <errno.h> | 43 | #include <errno.h> |
44 | #include <stdio.h> | 44 | #include <stdio.h> |
@@ -59,7 +59,7 @@ int | |||
59 | rcmd_af(char **ahost, int porta, const char *locuser, const char *remuser, | 59 | rcmd_af(char **ahost, int porta, const char *locuser, const char *remuser, |
60 | const char *cmd, int *fd2p, int af) | 60 | const char *cmd, int *fd2p, int af) |
61 | { | 61 | { |
62 | static char hbuf[MAXHOSTNAMELEN]; | 62 | static char hbuf[HOST_NAME_MAX+1]; |
63 | char pbuf[NI_MAXSERV]; | 63 | char pbuf[NI_MAXSERV]; |
64 | struct addrinfo hints, *res, *r; | 64 | struct addrinfo hints, *res, *r; |
65 | int error; | 65 | int error; |