Warning fixes for Sockets provider

This patch fixes the warnings in list.c and also the one in sock_cq.