diff options
author | murgatroid99 <mlumish@google.com> | 2016-10-12 13:19:40 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2016-10-12 16:21:05 -0700 |
commit | a460192d926d9d4adf76ef35d8ef1521623e2123 (patch) | |
tree | f91f282eed676a36aee3dfbd1709fd2940ee716d /src/core/lib | |
parent | 22d50e98d8dbff93a7221cd705130b1192c34ffa (diff) |
Minor fixes to sockaddr changes
Diffstat (limited to 'src/core/lib')
-rw-r--r-- | src/core/lib/iomgr/socket_utils_posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/socket_utils_posix.c b/src/core/lib/iomgr/socket_utils_posix.c index 9e95c276da..9dea0c0cd8 100644 --- a/src/core/lib/iomgr/socket_utils_posix.c +++ b/src/core/lib/iomgr/socket_utils_posix.c @@ -50,7 +50,7 @@ int grpc_accept4(int sockfd, grpc_resolved_address *resolved_addr, int nonblock, GPR_ASSERT(sizeof(socklen_t) <= sizeof(size_t)); GPR_ASSERT(resolved_addr->len <= (socklen_t)-1); fd = accept(sockfd, (struct sockaddr *)resolved_addr->addr, - (socklen_t)resolved_addr->len); + (socklen_t *)&resolved_addr->len); if (fd >= 0) { if (nonblock) { flags = fcntl(fd, F_GETFL, 0); |