diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-02-14 17:51:45 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-02-14 17:51:45 +0000 |
commit | 3681db07f45c679ccb04c45b3cd2c1d8b2a0aaf8 (patch) | |
tree | 4f0a8d1dda3c742f488e049c93ad29fe80fe822c /lib | |
parent | cc969e8555d0e0912936675efeb52f1e40bd889d (diff) | |
download | FreeBSD-src-3681db07f45c679ccb04c45b3cd2c1d8b2a0aaf8.zip FreeBSD-src-3681db07f45c679ccb04c45b3cd2c1d8b2a0aaf8.tar.gz |
- Use socklen_t.
- No need for two instances of 'num'.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/net/rcmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c index 1ad073d..3ded900 100644 --- a/lib/libc/net/rcmd.c +++ b/lib/libc/net/rcmd.c @@ -230,9 +230,8 @@ rcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, af) _write(s, "", 1); lport = 0; } else { - char num[8]; int s2 = rresvport_af(&lport, ai->ai_family), s3; - int len = ai->ai_addrlen; + socklen_t len = ai->ai_addrlen; int nfds; if (s2 < 0) |