minor refactor
This commit is contained in:
parent
726481cc8f
commit
8396042e83
@ -34,7 +34,7 @@ void tcpServer() {
|
|||||||
puts("socket created");
|
puts("socket created");
|
||||||
|
|
||||||
/*bind socket to address:port*/
|
/*bind socket to address:port*/
|
||||||
if (bind(serverSocket, (const struct sockaddr *) &serverAddress, sizeof serverAddress) < 0) {
|
if (bind(serverSocket, (const struct sockaddr *) &serverAddress, addressLength) < 0) {
|
||||||
puts("bind failed");
|
puts("bind failed");
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user