diff options
| author | deraadt <> | 2015-01-16 16:48:51 +0000 |
|---|---|---|
| committer | deraadt <> | 2015-01-16 16:48:51 +0000 |
| commit | 7027596ae70e4cf09e00ec2f7cb7434e59c533db (patch) | |
| tree | 2f04e8a0f019b4b73805acf11a1e5138c9b9f37f /src/lib/libc/net/rcmd.c | |
| parent | faa149ebaec577e1fb906bab49bcab3e8f495206 (diff) | |
| download | openbsd-7027596ae70e4cf09e00ec2f7cb7434e59c533db.tar.gz openbsd-7027596ae70e4cf09e00ec2f7cb7434e59c533db.tar.bz2 openbsd-7027596ae70e4cf09e00ec2f7cb7434e59c533db.zip | |
Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther
Diffstat (limited to '')
| -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; |
