Cast this to shutup clang
Removed some unreachable code
Merge pull request #6 from alex/cast-socket

Cast this to shutup clang