diff options
author | Martin Pool <mbp@samba.org> | 2002-01-25 22:59:37 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-01-25 22:59:37 +0000 |
commit | be8bd99aa47295aa0b52b5052f530dcb27c63975 (patch) | |
tree | e4f57690393db6b8526cc0eb5a50b1c70b53eee4 /clientname.c | |
parent | 355b8bcd73745553449c6666abf92326590af9a4 (diff) | |
download | rsync-be8bd99aa47295aa0b52b5052f530dcb27c63975.tar.gz rsync-be8bd99aa47295aa0b52b5052f530dcb27c63975.tar.bz2 rsync-be8bd99aa47295aa0b52b5052f530dcb27c63975.zip |
check_name doesn't need a socklen_t, because it knows what is inside
each sockaddr type.
Diffstat (limited to 'clientname.c')
-rw-r--r-- | clientname.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clientname.c b/clientname.c index 579089f9..66020525 100644 --- a/clientname.c +++ b/clientname.c @@ -91,7 +91,7 @@ char *client_name(int fd) client_sockaddr(fd, &ss, &ss_len); if (!lookup_name(fd, &ss, ss_len, name_buf, sizeof name_buf, port_buf, sizeof port_buf)) - check_name(fd, &ss, ss_len, name_buf, port_buf); + check_name(fd, &ss, name_buf, port_buf); return name_buf; } @@ -229,7 +229,6 @@ int compare_addrinfo_sockaddr(const struct addrinfo *ai, **/ int check_name(int fd, const struct sockaddr_storage *ss, - socklen_t ss_len, char *name_buf, const char *port_buf) { |