diff options
author | BALATON Zoltan | 2018-09-25 16:38:54 +0200 |
---|---|---|
committer | BALATON Zoltan | 2018-09-25 16:38:54 +0200 |
commit | 6d66394439149f74764404b169d1d19c47fdceb8 (patch) | |
tree | f56460f7f1683aca4786c4fdd811b2914cf17df2 | |
parent | 07a493a570ddef69f5c424795345813fc9c32d6d (diff) | |
download | libusbmuxd-6d66394439149f74764404b169d1d19c47fdceb8.tar.gz libusbmuxd-6d66394439149f74764404b169d1d19c47fdceb8.tar.bz2 |
Fix compile warnings
-rw-r--r-- | common/socket.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/socket.c b/common/socket.c index 1456d88..0fb4ba8 100644 --- a/common/socket.c +++ b/common/socket.c @@ -128,11 +128,11 @@ int socket_connect_unix(const char *filename) return -1; } - if (setsockopt(sfd, SOL_SOCKET, SO_SNDBUF, &bufsize, sizeof(int)) == -1) { + if (setsockopt(sfd, SOL_SOCKET, SO_SNDBUF, (void*)&bufsize, sizeof(int)) == -1) { perror("Could not set send buffer for socket"); } - if (setsockopt(sfd, SOL_SOCKET, SO_RCVBUF, &bufsize, sizeof(int)) == -1) { + if (setsockopt(sfd, SOL_SOCKET, SO_RCVBUF, (void*)&bufsize, sizeof(int)) == -1) { perror("Could not set receive buffer for socket"); } @@ -275,11 +275,11 @@ int socket_connect(const char *addr, uint16_t port) perror("Could not set TCP_NODELAY on socket"); } - if (setsockopt(sfd, SOL_SOCKET, SO_SNDBUF, &bufsize, sizeof(int)) == -1) { + if (setsockopt(sfd, SOL_SOCKET, SO_SNDBUF, (void*)&bufsize, sizeof(int)) == -1) { perror("Could not set send buffer for socket"); } - if (setsockopt(sfd, SOL_SOCKET, SO_RCVBUF, &bufsize, sizeof(int)) == -1) { + if (setsockopt(sfd, SOL_SOCKET, SO_RCVBUF, (void*)&bufsize, sizeof(int)) == -1) { perror("Could not set receive buffer for socket"); } |