--- a/lib/cddb_net.c
+++ b/lib/cddb_net.c
@@ -305,7 +305,7 @@
             int rv;
             fd_set wfds;
             struct timeval tv;
-            size_t l;
+            socklen_t l;
 
             /* set up select time out */
             tv.tv_sec = timeout;
