xt_socket.c: GCC 4.7 compiler warning fixups

Signed-off-by: Paul Reioux <reioux@gmail.com>
xc4000: gcc 4.7 fix up

Signed-off-by: Paul Reioux <reioux@gmail.com>