mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 04:31:50 +00:00
FS-7046: fix some unreachable code warnings
This commit is contained in:
@@ -3760,12 +3760,10 @@ static ws_socket_t prepare_socket(int ip, uint16_t port)
|
||||
|
||||
if (bind(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
|
||||
die("Bind Error!\n");
|
||||
return ws_sock_invalid;
|
||||
}
|
||||
|
||||
if (listen(sock, MAXPENDING) < 0) {
|
||||
die("Listen error\n");
|
||||
return ws_sock_invalid;
|
||||
}
|
||||
|
||||
return sock;
|
||||
|
||||
Reference in New Issue
Block a user