Make GCC 4.6 happy again

I have no idea why it did not warn about shadowing socket before, but
now suddenly does. GCC 4.6 was such a buggy release that I most likely
don't even want to know...