FS-7046: fix some unreachable code warnings

This commit is contained in:
Brian West 2014-12-03 15:24:37 -06:00
parent b341ff7c1f
commit 170fb1715a
1 changed files with 0 additions and 2 deletions

View File

@ -3760,12 +3760,10 @@ static ws_socket_t prepare_socket(int ip, uint16_t port)
if (bind(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { if (bind(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
die("Bind Error!\n"); die("Bind Error!\n");
return ws_sock_invalid;
} }
if (listen(sock, MAXPENDING) < 0) { if (listen(sock, MAXPENDING) < 0) {
die("Listen error\n"); die("Listen error\n");
return ws_sock_invalid;
} }
return sock; return sock;