diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-07-05 23:52:02 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-07-05 23:52:02 +0200 |
commit | ad8f53edc80811b933c9e2e0f469ef6e6a25972d (patch) | |
tree | 8521b323327952857072214e5a5cbb9195601cb5 /src/common/socket.c | |
parent | e1871219cae287d32a3dff716f8824c1ead62001 (diff) | |
download | tmwa-ad8f53edc80811b933c9e2e0f469ef6e6a25972d.tar.gz tmwa-ad8f53edc80811b933c9e2e0f469ef6e6a25972d.tar.bz2 tmwa-ad8f53edc80811b933c9e2e0f469ef6e6a25972d.tar.xz tmwa-ad8f53edc80811b933c9e2e0f469ef6e6a25972d.zip |
The function should return a value
Diffstat (limited to 'src/common/socket.c')
-rw-r--r-- | src/common/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/socket.c b/src/common/socket.c index 66093f7..f968373 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -153,7 +153,7 @@ static int connect_client(int listen_fd) fd_max = fd + 1; } else if (fd == -1) { perror("accept"); - return; + return -1; } // setsockopt(fd,SOL_SOCKET,SO_REUSEADDR,NULL,0); |