diff options
Diffstat (limited to 'libusbmuxd')
-rw-r--r-- | libusbmuxd/sock_stuff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libusbmuxd/sock_stuff.c b/libusbmuxd/sock_stuff.c index 9b0266e..487afda 100644 --- a/libusbmuxd/sock_stuff.c +++ b/libusbmuxd/sock_stuff.c @@ -148,7 +148,7 @@ int create_socket(uint16_t port) return -1; } - if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int)) == -1) { + if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, (void*)&yes, sizeof(int)) == -1) { perror("setsockopt()"); close(sfd); return -1; @@ -204,7 +204,7 @@ int connect_socket(const char *addr, uint16_t port) return -1; } - if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int)) == -1) { + if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, (void*)&yes, sizeof(int)) == -1) { perror("setsockopt()"); close(sfd); return -1; |