Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
355b8bc
)
check_name doesn't need a socklen_t, because it knows what is inside
author
Martin Pool
<mbp@samba.org>
Fri, 25 Jan 2002 22:59:37 +0000
(22:59 +0000)
committer
Martin Pool
<mbp@samba.org>
Fri, 25 Jan 2002 22:59:37 +0000
(22:59 +0000)
each sockaddr type.
clientname.c
patch
|
blob
|
blame
|
history
diff --git
a/clientname.c
b/clientname.c
index
579089f
..
6602052
100644
(file)
--- 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)
{