Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use socklen_t for getpeername, since we hopefully now have it defined
[rsync/rsync.git]
/
socket.c
diff --git
a/socket.c
b/socket.c
index
5860ce7
..
870e760
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-443,7
+443,7
@@
char *client_addr(int fd)
{
struct sockaddr sa;
struct sockaddr_in *sockin = (struct sockaddr_in *) (&sa);
-
int
length = sizeof(sa);
+
socklen_t
length = sizeof(sa);
static char addr_buf[100];
static int initialised;