Fixed sockets.c warnings.