Soft'N'Design Software
/
projects
/
webserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
echo server
[webserver.git]
/
server.c
diff --git
a/server.c
b/server.c
index 56b07cc07051476846f81fdf622e440d50023af3..574e54a53830b2dc24029dac66f1d015a9ac2518 100644
(file)
--- a/
server.c
+++ b/
server.c
@@
-133,7
+133,7
@@
socket_t open_listening_socket (int port)
socket_t accept_incoming_connection (socket_t sock)
{
socket_t connection = accept (sock, NULL, 0);
- if (connection
< 0
) {
+ if (connection
== INVALID_SOCKET
) {
return INVALID_SOCKET;
}