diff options
| -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) | |||
| 148 | return -1; | 148 | return -1; |
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int)) == -1) { | 151 | if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, (void*)&yes, sizeof(int)) == -1) { |
| 152 | perror("setsockopt()"); | 152 | perror("setsockopt()"); |
| 153 | close(sfd); | 153 | close(sfd); |
| 154 | return -1; | 154 | return -1; |
| @@ -204,7 +204,7 @@ int connect_socket(const char *addr, uint16_t port) | |||
| 204 | return -1; | 204 | return -1; |
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int)) == -1) { | 207 | if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, (void*)&yes, sizeof(int)) == -1) { |
| 208 | perror("setsockopt()"); | 208 | perror("setsockopt()"); |
| 209 | close(sfd); | 209 | close(sfd); |
| 210 | return -1; | 210 | return -1; |
