Fix compile warnings
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 @@
 		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 @@
 		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");
 	}