diff options
author | tomsmeding <tom.smeding@gmail.com> | 2020-01-27 15:18:52 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2020-01-27 15:18:52 +0100 |
commit | 04a84f262b6323f05c84470cfa6f02337aef8f0d (patch) | |
tree | f31ce60ec4b5fc2327429cdf5303e9ef06059a8d | |
parent | 36e55334774aea225513ec84adae1a60802d6f74 (diff) |
Fix bug
-rw-r--r-- | netcatchat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netcatchat.cpp b/netcatchat.cpp index 377aa51..c5cd48b 100644 --- a/netcatchat.cpp +++ b/netcatchat.cpp @@ -38,7 +38,7 @@ static int create_server_socket(void) { name.sin_family = AF_INET; name.sin_addr.s_addr = htonl(INADDR_ANY); name.sin_port = htons(PORT); - if (bind(sock, (struct sockaddr*)&name, sizeof name) < 0) die_perror("bind"); + if (::bind(sock, (struct sockaddr*)&name, sizeof name) < 0) die_perror("bind"); if (listen(sock, 16) < 0) die_perror("listen"); |