Fix size of value passed to setsockopt
authorPatrick Mooney <pmooney@pfmooney.com>
Sun, 21 Feb 2016 08:11:34 +0000 (02:11 -0600)
committerPatrick Mooney <pmooney@pfmooney.com>
Sun, 21 Feb 2016 08:11:34 +0000 (02:11 -0600)
src/server.c

index 72f39758309d329652084c57ab14e148f198a6e8..9dc0c29b57969c59bfc0a5222f2d33e6dffef3b6 100644 (file)
@@ -209,7 +209,7 @@ void Server_runLoop(struct pollfd* pollfds)
 
 void Server_setupTCPSockets(struct sockaddr_storage* addresses[2], struct pollfd* pollfds)
 {
 
 void Server_setupTCPSockets(struct sockaddr_storage* addresses[2], struct pollfd* pollfds)
 {
-       uint8_t yes = 1;
+       int yes = 1;
        int sockets[2];
 
        if (hasv4) {
        int sockets[2];
 
        if (hasv4) {