Use int instead of socklen_t.
This commit is contained in:
parent
9d78e32da8
commit
b25252a656
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ static bool first_time = false;
|
||||||
int make_socket (unsigned short int* port) {
|
int make_socket (unsigned short int* port) {
|
||||||
int sock;
|
int sock;
|
||||||
struct sockaddr_in name;
|
struct sockaddr_in name;
|
||||||
socklen_t length;
|
int length;
|
||||||
|
|
||||||
// Create the socket.
|
// Create the socket.
|
||||||
sock = socket (PF_INET, SOCK_STREAM, 0);
|
sock = socket (PF_INET, SOCK_STREAM, 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue