sockets: avoid compiler warning