--- src/stream.c 2007-03-27 15:23:25.000000000 -0400 +++ src/stream.c 2013-02-07 12:35:18.000000000 -0500 @@ -43,5 +43,5 @@ stream->fd = socket(AF_INET, SOCK_STREAM, 0); - connect(stream->fd, &addr, sizeof(addr)); + connect(stream->fd, (struct sockaddr *)&addr, sizeof(addr)); } else if (strncmp(spec, "ipv6://", 7) == 0) { fprintf(stderr, "IPv6 unsupported !\n"); --- src/server.c 2006-10-17 07:12:15.000000000 -0400 +++ src/server.c 2013-02-07 12:36:56.000000000 -0500 @@ -64,5 +64,5 @@ addr.sin_addr.s_addr = htonl(INADDR_ANY); - bind(server->socket, &addr, sizeof(addr)); + bind(server->socket, (struct sockaddr *)&addr, sizeof(addr)); listen(server->socket, 1); @@ -80,5 +80,5 @@ socklen_t len = sizeof(addr); - int sockfd = accept(server->socket, &addr, &len); + int sockfd = accept(server->socket, (struct sockaddr *)&addr, &len); if (sockfd < 0) { return;