Commit 3b5da8de authored by Pekka Pessi's avatar Pekka Pessi

Fixed setsockopt() in tport/tport.c.

Explicit (void *) cast for argument of setsockopt().

darcs-hash:20051031160356-65a35-9de4fe4c76eec48b55a2c8c8052f18e082ad183c.gz
parent 50899669
......@@ -1235,13 +1235,15 @@ tport_primary_t *tport_listen(tport_master_t *mr, su_addrinfo_t const *ai,
TAG_END());
if (rmem != 0 &&
setsockopt(s, SOL_SOCKET, SO_RCVBUF, &rmem, sizeof rmem) < 0) {
setsockopt(s, SOL_SOCKET,
SO_RCVBUF, (void *)&rmem, sizeof rmem) < 0) {
SU_DEBUG_3(("setsockopt(SO_RCVBUF): %s\n",
su_strerror(su_errno())));
}
if (wmem != 0 &&
setsockopt(s, SOL_SOCKET, SO_SNDBUF, &wmem, sizeof wmem) < 0) {
setsockopt(s, SOL_SOCKET,
SO_SNDBUF, (void *)&wmem, sizeof wmem) < 0) {
SU_DEBUG_3(("setsockopt(SO_SNDBUF): %s\n",
su_strerror(su_errno())));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment