summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar BALATON Zoltan2018-09-25 16:38:54 +0200
committerGravatar BALATON Zoltan2018-09-25 16:38:54 +0200
commit6d66394439149f74764404b169d1d19c47fdceb8 (patch)
treef56460f7f1683aca4786c4fdd811b2914cf17df2
parent07a493a570ddef69f5c424795345813fc9c32d6d (diff)
downloadlibusbmuxd-6d66394439149f74764404b169d1d19c47fdceb8.tar.gz
libusbmuxd-6d66394439149f74764404b169d1d19c47fdceb8.tar.bz2
Fix compile warnings
-rw-r--r--common/socket.c8
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");
}