summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-04-03 03:12:06 +0200
committerGravatar Hector Martin2010-04-08 15:12:01 +0200
commit30b6e8a94dc394b8358ccbea8530b5c73b03d3b8 (patch)
treeecbad2341c396e03e6e164c25a39f25ef122c11c
parentbcdac46984bea76ca5c47be55074d376a18b4a62 (diff)
downloadusbmuxd-30b6e8a94dc394b8358ccbea8530b5c73b03d3b8.tar.gz
usbmuxd-30b6e8a94dc394b8358ccbea8530b5c73b03d3b8.tar.bz2
libusbmuxd: suppress compiler warning
-rw-r--r--libusbmuxd/sock_stuff.c4
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;