--- lib/cddb_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/lib/cddb_net.c +++ b/lib/cddb_net.c @@ -325,7 +325,7 @@ int timeout_connect(int sockfd, const st default: /* we got connected, check error condition */ l = sizeof(rv); - getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, &l); + getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, (socklen_t * restrict)&l); if (rv) { /* something went wrong, simulate normal connect behaviour */ errno = rv;